I have a problem on GoogleDrive API. I want to get all contents from such a file with 1 request! I know that there are methods, which let us to get list of files in folders, and then do requests for each file. But it's complicated & nasty approach. Is there anyone, who knows how can I implement this desirable trip on iOS(swift)???
Related
Here's my problem, and I can't solve it.
Maybe you have a solution.
I have a OneDrive folder with lots of pictures in it.
What I need are "embedding links" from the pictures. But I don't want to create 5000 "embed links" individually.
Does anyone have a solution for me how to automate this?
I have already looked at MS Graph, but it involves a lot of work. I have no experience with it. Do you have another idea? Or a good explanation how to do this with MS Graph?
So I figured this out.....
One "simply" has to rearrange the structure of the OneDrive URL
For instance......
Here is how a URL must be structured for it to point to a file inside a onedrive folder.....
https://yourmicrosoftaccountname-my.sharepoint.com/personal/1stURLsegment/2ndURLsegment_onmicrosoft_com/Documents/1st_level_OneDrive_folder/2nd_level_OneDrive_folder/3rd_level_OneDrive_folder/filename.ext
Won't bother about going into any detail able how to structure the gallery in PowerApps such that it can use a dynamic list of files in a table to point to media files.
We're self hosted and have asked for some activity data from our central utility that hosts D2L for us. They're able to produce the data file, but insist on giving us the file through another D2L course putting it in the manage files area. The file is produced on a schedule and follows a standardized name. But in order to get the file someone has to log into D2L, go to the course, find the file in the files area of the course, and download the file from the Manage Files area.
I would like to be able to write a process that would reach into D2L and get the file I'm looking for. I've scanned the Valence API and all that would initially seem to be possible is if these files have a corresponding Topic in the content structure that I could use to get the file to grab.
http://docs.valence.desire2learn.com/res/content.html#get--d2l-api-le-(version)-(orgUnitId)-content-topics-(topicId)
As is they're not inserting a topic pointing to the new file. I'm not seeing anything via Valence that would suggest there's a way to get a file listing of the files area of a course, or even retrieve a specific file.
Is this even possible? Any ideas as to how I could do this?
The Brightspace application APIs have a call that can fetch the underlying file for a content topic of type file.
You can also add a new content topic of type file to the content structure, and set the URL property for the topic to point at the existing file in the content space; this should re-use the file in the course's content space, allowing you to get directly at the file in the content space, assuming you know its name and location in the content space to start with.
I can't seem to find information on how to print files through google app script.
I found an answer in this website but it doesn't work, I think it's because it's 3 years old and google script has had some changes.
google app script print button
You can't print directly from GAS (I've searched far and wide), as described in the post that you linked. However it is possible to create a downloadable document with the desired content and then pass that blob off to the client for downloading (depending on wether you're still working in GAS or a web app environment).
Personally, I felt that it was a headache to deal with how each browser deals with downloading blobs. Therefore I usually go one of these two routes: provide a public downloadable link from the drive of the owner of the script and then push it to the user to download, OR just email the document to the user and let their email client handle downloading the blob.
Alternatively, if this is an add-on, you can make it so that the document is downloaded directly to the users own drive and just inform them where the document will be located.
I want to be able to download the entire contents of a website and use the data in my app. I've used NSURLConnection to download files in the past, but I don't believe it is capable of downloading all files from an entire website. I'm aware of the app Site Sucker, but don't think there is a way to integrate it's functionality into my app. I looked into AFNetworking & ASIHttpRequest, but didn't see anything useful to me. Any ideas / thoughts? Thanks.
I doubt there is anything out of the box that you can use, but existing libraries that you mentioned (AFNetworking & ASIHttpRequest) will get you pretty far.
The way this works is, you load the main website. Then you go through the source and find any resources that that page uses to display its contents and link to other pages. You then need to recursively download the contents of those resources, as well as its resources.
As you can imagine, there are few caveats to this approach:
You will only be able to download files that are mentioned in the source codes. Hidden files or files that aren't used by any page will not be downloaded as the app doesn't know of their existence.
Be aware of relative and absolute paths: ./image.jpg, /image.jpg, http://website.com/image.jpg, www.website.com/image.jpg, etc. could all link to the same image.
Keep in mind that page1.html could link to page2.html and vice versa. If you don't put any checks in place, this could lead to an infinite loop.
Check for pages that link to external websites--you probably don't want to download those as many websites have links to the outside and here you downloading the entire Internet to an iPhone with 8GB of storage.
Any dynamic pages (the ones that use a server side scripting language, such as PHP) will become static because they lose their server backend to provide them with dynamic data.
Those are the ones I could come up with, but I'm sure that there's more.
I'm developing an iOS app that generate video files and have a social gallery for users to display their clips. After a lot of research I found that Google Drive would be perfect to fit my needs so I did some testing and sucessfully made the app upload the file to GDrive and everything.
Now I need to stream the uploaded file in a MPMoviePlayerViewController, for that I would need some kind of direct link, I'm right? After my initial tests I used the variable WebContentLink as a source URL and it worked flawlessly, I was really happy with the result, however now it doesn't work anymore, I don't know what happened and I think the method that I used is not realiable? I tried all the other possible links and none of them seems to work.
Can someone give a guidance about if this is really supported by Google Drive and how it's the best way to archive that in a reliable way?
Thank you very much !
I too encounter the same error when I try to download 28 times (testing) the same 24mb file.
However I realise if I am to download using the content owner ID, it does allow downloading after the 28th time
https://docs.google.com/a/onwardsct.com/uc?id=0ByvXJAlpPqQPYWNqY0V3MGs0Ujg&export=download
Sorry, you can't view or download this file at this time.
Too many users have viewed or downloaded this file recently. Please try accessing the file again later. If the file you are trying to access is particularly large or is shared with many people, it may take up to 24 hours to be able to view or download the file. If you still can't access a file after 24 hours, contact your domain administrator.
The experience for streaming files natively is not ideal right now, sorry. It is something Google are working on.
You are doing this correctly though. The webContentLink should use the user's quota, and that should be enough for most cases. If you can give some specific numbers, we can look at it.
The embed link is the best way to show it on a mobile device, but as you say won't work everywhere.
yes, google drive can be used for hosting and stream videos as you like. It can also be used as demo server for web projects. Here is how to host a website on Google drive.