Getting thumbnails for files(first page) using SkyDrive api ios - ios

Am created one ios books reader application.. In this application am integrated google drive and skydrive.. Now i can able to signin and retrive datas from google drive and skydrive..
In google drive i can able to get thumbnail views of my files.. In google drive have an option for getting thumbnails.. Using thumbnail url.
In sky drive i searched a lot i cant able to get for this.. Is it possible to get thumbnails of my files(First page) in Sky drive
Really am working on two days in that.. I cant able to get any resource.. So pls help me

I understand your sincerity. No one will help for this, because there is no source to get first page of thumbnail directly. So you should work hard and write code in your self to get this done. Good Luck...
Thanks,
Senthil.

You need to contact the SkyDrive API developers. Their documentation is incomplete. Maybe there is a way to get the thumbnail of a file however it is not indicated in the documentation.

Yes there is a way to get the file thumbnail from SkyDrive iOS API. In the JSON data-model you receive from the SkyDrive API, retrieve value for the key "picture". This value is a string with the thumbnail-download-url. Here's how you'll get it(assuming jsonFileModel is an NSDictionary* representing a SkyDrive file):
NSString *thumbnailDownloadURL = [jsonFileModel objectForKey: #"picture"];

Related

How to get redirector.googlevideo link

i have a problem, becouse i want to use JWplay including a redirector.googlevideo link, but i cant do that.
i need to know how to get a video link like redirector.googlevideo for put in JWplayer. I have a google drive account, but i don't know how to create a link like: https://redirector.googlevideo.com/videoplayback?id...
I already upload a video in google drive but i don't know how can i resolve this problem
Thanks !
I don't think this is supported by the Drive API per se, as I used Files.get to retrieve all the drive metadata but this link could not be found.
However, I found this Google-Drive-Player-Script which might help you as it
"Grabs google drive streaming links
(redirector.googlevideo.com/videoplayback?..)"
Check it out.

Document embeddable url from Google Picker

I used Google Picker API to get embeddable url for spreadsheets and to show it in widget in web-app.
But currently API returns object without such URL.
doc[google.picker.Document.EMBEDDABLE_URL] is undefined.
Is there any correct way to get embeddable url for document through API?
#GGamba
Yes, even we are facing same problem. EMBEDDABLE_URL is not being sent as part of the response. It was working until 2 days back. Though the documentation says Parameters will sent basing on the mime-type of the file. For PHOTO we have been getting this.
Suddenly it stopped working.
I have posted a query on the Google picker forum
https://developers.google.com/picker/forum

Google Youtube API V3 Just Get Data

There are changes made on the Youtube API, i see bunch of stuff.
But all i want is to get the Youtube title and img thumbnail. DO i really need to go all the stuff regestering for api, etc just to get the title and img of a single video.
So i figured it out.
Yes, you really need to register an to the API Developers Console.
if you are like me and just want to get the title or thumbnail use the
Public API access
but if you are looking more for the extreme controls on your video out of youtube. You can do that but you have to use the
OAuth Credentials
to get simple data i used >>THIS<< basically the snippet holds the information for the Video like title,uploaded by,uploaded on etc. .

Can't access twitter profile URL - using STTwitter Wrapper

I'm using the STTwitter wrapper to connect with Twitter and I'm running AppOnly and I'm able to retrieve the tweet text with no problems. I'm using the getStatusesUserTimelineForUserID method for that.
The problem is that I can't access "twitter_profile_url" or "profile_banner_url" but I can access text and tweet time and tweet ID perfectly fine.
I did however manage to get the twitter_profile_url by using the getUsersShowForUserID method.
My question is that am I doing something wrong when trying to access twitter_profile_url with getStatusesUserTimelineForUserID? I looked over Twitter's documents and I think the reason why getUsersShowForUserID works is because of the includeEntities property. I'm not 100% sure on that so I was wondering if someone could clarify that for me?
The endpoint statuses/user_timeline.json returns a list of tweets.
Each of these tweets has a user dictionary, and this dictionary should have keys such as profile_image_url, profile_image_url_https, profile_banner_url, profile_background_image_url or profile_background_image_url_https.
So yes, it should be working, and if not then please open an issue on STTwitter project and post the exact code you're using.

Search YouTube API without login in

I'm creating an app where i would like to display video result from the YouTube site.
However, i do not want the user to register for this.
After i registered my app, and allowed "YouTube Data Api", Still when i'm calling from my app:
https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=3&order=relevance&q=test&regionCode=AR&type=video&key={MyKey}
I'm getting back "forbidden (403)"
This issue suppose to be really simple, but i'm really straggling to get this to work, i'm thinking maybe it has something to do with the new API version 3.0, that you can not search without authentication?
Any help would be much appreciated thanks.
You can use below URL for searching of youtube videos using version3
https://www.googleapis.com/youtube/v3/search?part=snippet&q=nokialumia&key=#"API _KEY"&maxResults=20&pageToken=0
For suggestions of you tube videos you can use below link. It will gives you the data in XML format. You can parse and get results.
http://suggestqueries.google.com/complete/search?output=toolbar&ds=yt&q=nokialumia
If you want to use Version 2 use below link
Youtube Search using version 2.0
Hope it helps you...!
What kind of results do you want to see? Views, comments, share, likes? I think that you are not able to see any results by Youtube Data Api or Youtube Analytics API V3 without a valid key. You can find all error codes and their meanings from this link.
I hope it helps.

Resources