Re: Using OAuth 2.0 for Installed Applications
Vishmi Money <[email protected]>
| Newsgroups | gmane.comp.web.blogger.api |
|---|---|
| Message-ID | <CA+h+qfHSf-ZmRLR-1rbNyBmUYqwM2uCSV=sF8n=0BqEZXhGKoQ@mail.gmail.com> |
Hi Lars, I have managed to send Http GET requests successfully through the API but for POST requests, I still couldn't. I have currently stopped further developing of the app, but I hope to continue it later. Vishmi. On Mon, Dec 9, 2013 at 6:43 PM, Lars Niemann <[email protected]>wrote: > Hi Vishmi, > > have you managed to use the Blogger API in your Win8-App? > I am also trying to use it, but the Authorize-function throws an exception > every time I use it. > If anyone is interested, I could post some more details tonight. > > Am Sonntag, 22. September 2013 08:20:19 UTC+2 schrieb Vishmi Money: > >> Hi Brett, >> Thank you very much for your information. Definitely I'll follow it. >> >> Vishmi >> >> On Monday, September 16, 2013 11:49:00 AM UTC+5:30, Brett Morgan wrote: >>> >>> Hi Vishmi, >>> >>> Have you had a look at Google API .Net client library<https://code.google.com/p/google-api-dotnet-client/>? >>> It should already have an OAuth library included in it. Alternatively, you >>> could post on Google API .Net client library group<https://groups.google.com/forum/#!forum/google-api-dotnet-client> >>> . >>> >>> brett >>> >>> >>> On Mon, Sep 16, 2013 at 4:11 PM, Vishmi Money <[email protected]>wrote: >>> >>>> I am developing a Windows 8 App for Blogger which allows create and >>>> update blogs through the app.I am developing the app in C#/XAML using >>>> Visual Studio 2012. For the login of a user I follow this link on Auth 2.0 >>>> client. >>>> https://developers.google.com/accounts/docs/OAuth2InstalledApp# >>>> choosingredirecturi >>>> >>>> I have followed the initial step "Forming the URL" successfully and >>>> was able to get the success code where it is asked to paste it in my >>>> application. >>>> I created a separate interface to paste it manually and get it to a >>>> variable called code. >>>> >>>> Then the next step, "Handling the Response" is unsuccessful in each >>>> time I try. >>>> I request you to help me to get trough this step. >>>> >>>> POST /o/oauth2/token HTTP/1.1 >>>> Host: accounts.google.com >>>> Content-Type: application/x-www-form-urlencoded >>>> >>>> code=4/v6xr77ewYqhvHSyW6UJ1w7jKwAzu& >>>> client_id=8819981768.apps.googleusercontent.com& >>>> client_secret={client_secret}& >>>> redirect_uri=https://oauth2-login-demo.appspot.com/code& >>>> grant_type=authorization_code <https://oauth2-login-demo.appspot.com/code&grant_type=authorization_code> >>>> >>>> >>>> >>>> Please tell me the way I can send a "Post" request in C# containing >>>> these information and get the stated successful response as below. >>>> >>>> { >>>> "access_token":"1/fFAGRNJru1FTz70BzhT3Zg", >>>> "expires_in":3920, >>>> "token_type":"Bearer", >>>> "refresh_token":"1/xEoDL4iW3cxlI7yDbSRFYNG01kVKM2C-259HOF2aQbI" >>>> } >>>> >>>> >>>> PS: Only limited type of methods in C# are allowed in developing >>>> Windows 8 apps. >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Blogger Developer Group" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> To post to this group, send email to [email protected]. >>>> Visit this group at http://groups.google.com/group/bloggerdev. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>> >>> >>> >>> -- >>> >>> Brett Morgan | Developer Relations Engineer, Google Maps | >>> [email protected] | profiles.google.com/brettmorgan >>> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "Blogger Developer Group" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/bloggerdev/qwRiswZSf0Y/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/bloggerdev. > For more options, visit https://groups.google.com/groups/opt_out. > -- [image: photo] *Vishmi Abhinaya Money* Undergraduate, Department Of Computer Science And Engineering, University Of Moratuwa. | mobile: +94710148358 | email: [email protected] | blog: code-mind.blogspot.com [image: Facebook]<http://s.wisestamp.com/links?url=https%3A%2F%2Fwww.facebook.com%2Fvishmi.abhinaya&sn=ZHBqYXlhc2VrYXJhQGxpdmUuY29t> [image: LinkedIn]<http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.linkedin.com%2Fprofile%2Fview%3Fid%3D201252118%26locale%3Den_US%26trk%3Dtyah%26trkInfo%3Dtas%253Avishmi%2520mo%252Cidx%253A1-1-1&sn=ZHBqYXlhc2VrYXJhQGxpdmUuY29t> -- You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/bloggerdev. For more options, visit https://groups.google.com/groups/opt_out.