I'm struggling to find an answer to what seems like a simple question, I'm quite new to the YouTube API and I've been tasked with upgrading our integration from the 2.0 API to 3.0 at work (late, I know).
It seems like to upload a video there's a lot of data that needs to be sent up with a video upload and I'm trying to figure out what parameters I can leave blank and which I have to set and send up.
I'm assuming that things such as content rating can be left blank and will be automatically set but before I start skipping things I was wondering if anyone knew what was the bare minimal that needs to be attached to a video upload for the API to accept it. I've gone through the docs but it seems to just list everything without any "required / optional" flags.
snippet.title
snippet.description
snippet.categoryId
status.privacyStatus
are the bare minimal for the video resource inside the videos->insert method.
Related
I've been asked to integrate videos into an existing app which previously only let users upload posts with images.
I don't want to host the videos on my own server for the following reasons:
Server Bandwidth
File Size Limits and Storage Space
Slow-Loading Video or Unexpected Pauses During Playback
Issues with converting to specific formats
Piracy
Based off this article:
https://www.wp101.com/10-reasons-why-you-should-never-host-your-own-videos/
So I tried to research into where I could host the files and then I would simply have to store the URL in my db and use a video player to stream the content.
Vimeo and youtube seemed to be the main options I could find.
I'm wondering how best to implement, would I make use of a youtube API and on successful upload, grab the link and upload to my own server? I'm concerned this may be a long process for the end user.
Another problem is I can't see any swift examples (ZERO obj-c experience) of making the http request but perhaps it is still possible but I'd just have to write the code myself? I'm wondering if anyone has implemented anything like this already as I can't find any examples.
Looking at this question:
How do I upload a video to YouTube from within an iOS application?
None of the links in the comments work and the answer directs to the youtube 2.0 API and I'm concerned that this is now deprecated.
Any advice appreciated!
I have a database of people in my iOS app with their images being dowloaded from freebase.com Today i noticed that the images are not downloading any more. I checked and i see that google redesigned and reorganized freebase and now the images include a key. Right now i have image url stored in core data like this
http://img.freebase.com/api/trans/image_thumb/m/03s07kd?maxheight=240&maxwidth=300
To use the new format do i have to get an api key and include that with every image request or i can just get the link and change it in my database? I am not making any other calls to the database just the image from the url.
I just tested and i can change the link to
https://www.googleapis.com/freebase/v1/image/m/03s07kd?maxheight=240&maxwidth=300
which works. I am also noticing now that the images are much lower quality then they were before. How do i get the same quality images that i was getting before?
I want to make sure that this won't happen again and do it properly.
Thanks!
There's a whole set of documentation at: https://developers.google.com/freebase/
Basically, as I understand it, if you don't include your own API key, you'll be working off a small pool of quota shared with all other API users who aren't sending keys with their requests. This means it could work in the morning, but not the evening when quota is exhausted or it works some days, but not others.
Don't forget to include the required attribution to Freebase if you aren't already including it.
I have been trying to get the new thumbnail setting feature to work in the v3 Data API. There is documentation on how to set thumbnails (https://developers.google.com/youtube/v3/docs/thumbnails), but it doesn't seem to be available as a resource in the actual API when I call it.
I wondering if there is a bug somewhere or if the thumbnail setting code has been documented and just not yet released.
This feature is working as expected. Make sure you use the latest libraries from https://developers.google.com/youtube/v3/libraries
I test with browser with the link I get from "http://www.youtube.com/get_video_info?&video_id=xx" to see if it is be able to download.
After remove some parameters from original link, some works but some still don't.
I read some post here but most of are pretty old. A lot of change since then.
I wonder if there are somebody working on this recently.
The purpose I need this is because my youtube view program need a better quality video to display.
This is link doesn't work:
http://r17---sn-tt17rn7e.c.youtube.com/videoplayback?fexp=902529%2C932000%2C906383%2C902000%2C919512%2C929903%2C931202%2C900821%2C900823%2C931203%2C931401%2C908529%2C919373%2C930803%2C906836%2C920201%2C929602%2C930101%2C930603%2C900824%2C910223&ipbits=8&expire=1364854787&sver=3&mt=1364829200&newshard=yes&id=26c94a41dba396f5&key=yt1&upn=GrcnDUPfreQ&cp=U0hVSVhQUl9NUUNONV9QSlZIOm9BbnVkMTJzOXE5&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&ip=173.248.214.165&itag=34&ms=au&source=youtube&mv=m&signature=9593596F58B377FAA4C8F5A4516C7F53CE473340.507CA2EA250CEED2E2B2377FD70EE1A0478EE322&type=video/mp4; codecs="avc1.42001E, mp4a.40.2"&itag=18&
What wrong with it? I removed fallback_path and replace sig with signature.
The working link is for webm. This is for h264. Both have the same kind of parameters.
And this is working now.
http://r17---sn-tt17rn7e.c.youtube.com/videoplayback?fexp=909708%2C912514%2C930802%2C932400%2C916624%2C931009%2C932000%2C906383%2C902000%2C919512%2C929903%2C931202%2C900821%2C900823%2C931203%2C931401%2C908529%2C930807%2C919373%2C906836%2C920201%2C929602%2C930101%2C930603%2C900824%2C910223&ms=au&itag=44&mt=1364825784&ipbits=8&cp=U0hVSVhQT19NUUNONV9QSlNCOlp5ZGoyMXJ3emlq&ip=173.248.214.165&upn=ohH0s8EjPyo&newshard=yes&source=youtube&ratebypass=yes&mv=m&sparams=cp%2Cid%2Cip%2Cipbits%2Citag%2Cratebypass%2Csource%2Cupn%2Cexpire&id=26c94a41dba396f5&expire=1364851187&key=yt1&sver=3&signature=798EED35782B846D2B0EA190A17E837A0DBA18EA.AD56BCF6365AAD974C18F09F352F9422084C50AC&type=video/webm; codecs="vp8.0, vorbis"&quality=large,itag=35&
That's not a supported method of interacting with YouTube. You need to use one of the official YouTube Player mechanisms to display YouTube videos.
Please familiarize yourself with the YouTube API Terms of Service if you have any more questions.
I want to add Yelp search into my application.
To do this I need to use Yelps Oauth authentication. This sounded easy as I've made some server applications before.
However, I keep getting an INVALID_SIGNATURE with the code I have created to make and retrieve data from a constructed URL.
I have checked the signature output by my app and it is exactly the same as the one they provide at http://api.yelp.com (I've even checked the two strings (before the hashing) at http://www.textdiff.com and they said they were the same)
It seems I hit a dead end and cannot get around this error.
Can anyone point me in the right direction with why my signature might not work
and/or
Can someone point me to a good iOS Oauth tutorial and library (any library I have found has poor documentation on how to use it)
Thanks