I am developing a mobile application for my school, which requires connecting to the website API with Moodle, the intention is to show the Moodle files from the same app, is there any way to do it?
So far, I can connect to the API, show the files, but the only solution I have achieved so far is to redirect to the browser so that the student can download the file.
Having the URL of the file, I thought about displaying the file via Google Docs, but in doing so, it tells me that the file cannot be displayed.
The URL I get from each file is type:
[moodle_site]/webservice/pluginfile.php/1504591/mod_resource/content/7/[file_name]?forcedownload=1&token=[token_user]
Any idea how to achieve it?
Related
I have a website written by js-css-html and some php. I have uploaded all the files to the github and it is activively working. As you know, it is a web-page which you can access it via a link.
What I'm trying to do is to see who click to my website. In my search I find that log files do this what I want. How can add log file to keep tracking who is click my web-page?
A GitHub page does have analytics:
either natively through Traffic page,
or through third-party tools, like Google analytics (with this script or a pixel tracked)
I made a unity web build of my game and uploaded it to a secure parse server.
I made all the settings to integrate it with Facebook. All Facebook functions are working fine, but the changes made to the web build are visible if the web build is opened in a browser, yet the same changes are gone in a Facebook canvas page.
It seems as if Facebook is ignoring the html file and only considering the .unity3d file for playing the game on Facebook.
What might be causing this issue, and how can I resolve it?
As far as I know, facebook only uses the .unity3d file and ignores the .html. The html page generated by Unity should be seen as a helper to quickly test a web build and not as a production-ready web page.
What change have you made in the html file that you'll need to reflect in the facebook page ?
I'm building a client/server video app. The video lives on the server, typically. If I want to allow app users to copy videos to their Dropbox, is there any way to do that using the Dropbox API on the app other than downloading the content to the app and re-uploading it to Dropbox? Reading their API, it seems like they only have file upload, not upload from a URL. Is there any way?
Is the Saver an option for you? That takes a URL and presents the user with UI to choose a location within Dropbox, after which the file will be saved to that location.
It's as simple as including a <script> tag and then adding class="dropbox-saver" to what would otherwise be a normal download hyperlink.
See https://www.dropbox.com/developers/dropins/saver.
I am running into a difficulty with the picker api for users who have installed our Chrome Web Store app, but who have not yet enabled drive. For users in this state, it is possible to save new files using the files/insert api, which returns a successful response, but these files do not show up in picker. Once the user enables drive, all the files they have previously saved begin showing up in picker.
Is this behavior intended? If so, what is the best way to determine if a user has drive enabled, so that we can prompt users to enable drive instead of making it look like we're not saving their documents?
Currently, the picker and the API will only work if the user has installed your Drive application ont he Chrome webs Store.
We understand the pain involved for developers and we are looking to relax this restriction.
In the mean time there is a way to check if the user has installed the Drive app, for that you need an OAuth 2.0 access token (so your user will need to have gone through the OAuth flow and authorized you to access his Drive data). Then you can simply try to read a file with a bogus ID (lets say ID "000" or "abcdefghijklmnopqrstuvw"). If the API returns the error "403: The authenticated user has not installed the app with client id {clientId}", that means that he has not installed the app yet and that you should hide Drive functionnalities and probably show him something that say "To take advantage of our latest Google Drive integration/features, we recommend that you install our Drive App link to Chrome Web Store listing".
If the user has your Drive app installed you will get a "404: File not found: {fileId}" error on this request.
First it is odd that the picker is not showing files for your non-drive enabled user.
So I just tested the picker with a non-drive account and everything worked as expected... For instance you can try with the Balsamiq Drive app https://chrome.google.com/webstore/detail/pplbmgaodhjmbklkgkgmlghaekcfhhkk They are using the picker in Mockup > Open...
After installing you have to go to https://balsamiqgdrive.appspot.com
I created a mockup first and saved it. It appeard in Docs. Then I tried the picker in Balsamiq and I could see it.
I would like to upload an html email I created to my client's server thru my ftp program. I am assuming that it isn't working because his site is in Joomla. I have tried to upload the file, and I see it there in my uploaded files, but when I enter that page address into my browser's address bar it says it can't find the file. Is there a way to do this when his site is in Joomla? Thanks so much! (His site is prohomebuyer.com)
Thanks for commenting. Yes, I have uploaded to public_html, and I see it there. But, when I look for it online, I get the website's error message inside the site template.