Tuesday, March 13, 2012

[YouTube-API] Re: Getting Insight/Analytic CSV Zip with OAuth/OAuth2 API

Hello,

Please see my response at

https://groups.google.com/group/youtube-api-gdata/browse_thread/thread/ea8ab390b41aa7be#

Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev


On Mar 12, 6:52 pm, ChDev <chiatd...@gmail.com> wrote:
> @Jeff & Mischa
>
> I'm attempting something similar.
>
> I'm attempting to retrieve YouTube insights using C#.
> I have been able to retrieve video Ids, however, I cannot retrieve the
> insights. I'm hoping that by using the video ID I can do a Get on the
> following URL:
>
> https://insight.youtube.com/video-analytics/csvreports?query=VIDEO_ID...
>
> Though this URL doesn't seem to work.
>
> I'm using c# and the YouTubeRequestSettings object to set the developer
> token, username, and password for a channel.  With that I get back video
> objects, but the video objects don't have the insights information in them.
>  Any help would be appreciated.
>
> ChDev.
>
> -----------------
>
>
>
>
>
>
>
> On Monday, March 12, 2012 11:28:03 AM UTC-7, Jeffrey Posnick wrote:
>
> > Hello,
>
> >  I don't understand what part of the process is causing you trouble.
> > It sounds like you're able to successfully retrieve a URL for the
> > archive file using the API (something along the lines of
> >http://insight.youtube.com/video-analytics/...). Are you saying that
> > when attempting to access that URL (without modifying the URL) you get
> > back... what, exactly? Please note that the URL points to a .zip
> > archive that needs to be uncompressed, and inside the uncompressed
> > folder are the various CSV files for you to process.
>
> > Cheers,
> > -Jeff Posnick, YouTube API Team
> > groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
> > @YouTubeDev
>
> > On Mar 7, 4:03 am, micha <micha...@gmx.net> wrote:
> > > Thanks for your reply. But I can't get an authorisation to download the
> > > zipped CSV files with the oauth(1) api.
>
> > > Can someone give me any idea or solutions to download the CSV files with
> > > the oauth(1) API? My solution runs perfectly for getting user or video
> > > information, but the CSV links are unreadable.
>
> > > Micha
>
> > > Am Freitag, 2. März 2012 17:34:58 UTC+1 schrieb Jeffrey Posnick:
>
> > > > Hello,
>
> > > >  The value of the token parameter in an Insight URL is opaque, and you
> > > > should never adjust it. Just used whatever's returned from the API.
>
> > > > Cheers,
> > > > -Jeff Posnick, YouTube API Team
> > > > groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
> > > > @YouTubeDev
>
> > > > On Feb 29, 1:11 pm, micha <micha...@gmx.net> wrote:
> > > > > Hello,
>
> > > > > I want to download automatically the statistics of the channels and
> > > > videos
> > > > > of our customer.
> > > > > Therefore I use a ruby library (oauth / oauth-plugin) to get a
> > > > temporarily
> > > > > access token for the download process.
>
> > > > > * I have created a project onhttps://code.google.com/apis/console
> > > > > * I use the client key and secret to get a youtube authorization for
> > > > this
> > > > > project (with oauth1 protocol because of problems with the library
> > and
> > > > > oauth2)
> > > > > * now I have consumer tokens in my database like
> > > > > 1/ykeB9Zjb-eoysRePnuBnoZmwD5AckpSBbqJxco-K8T4 and a secret
>
> > > > > With this information I want to generate an access token to use it
> > to
> > > > > download the insight files.
>
> > > > > If I download the files directly I get a Link with a token
> > parameter:
>
> >http://insight.youtube.com/video-analytics/csvreports?query=xxxx&type...
>
> > > > > What is this token exactly? Is it correct that I must get an access
> > > > token
> > > > > with my request token, I got from the oauth authorising a request
> > token
> > > > > step?
> > > > > The next problem is, that I must know the access token to put it in
> > the
> > > > > insight download request. But I never see this token.
>
> > > > > I didn't understand this. Can someone help me?

--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment