gdata

Get refresh token google api

醉酒当歌 提交于 2019-11-26 17:04:20
I can't get my refresh token with my code. I can only get my access token, token type etc., I have followed some tutorials like putting access_type=offline on my login URL: echo "<a href='https://accounts.google.com/o/oauth2/auth?" . "access_type=offline&client_id=123345555.apps.googleusercontent.com& " . "scope=https://www.googleapis.com/auth/calendar+https://www.googleapis.com/auth/plus.me&response_type=code& " . "redirect_uri=http://www.sample.com/sample.php&state=/profile'>Google</a>"; and my fields in getting the access token: $fields=array( 'code'=> urlencode($authcode), 'client_id'=>

jQuery.getJSON not working properly in IE8 with gdata json-c. Why? [duplicate]

坚强是说给别人听的谎言 提交于 2019-11-26 16:19:17
问题 This question already has an answer here: How to make cross-domain AJAX calls to Google Maps API? 1 answer Using jQuery: $.getJSON('http://gdata.youtube.com/feeds/api/videos/b2-5GSjZvW8?v=2&alt=jsonc', function(meta){alert(meta.data.title);}); Firefox and Chrome both work as expected, but IE keeps triggering the error function (when using $.ajax ) instead of success. The error status is "0" which doesn't help much. I've also tried using $.ajax with cache:false to no avail. Any ideas? 回答1: I

Get refresh token google api

拥有回忆 提交于 2019-11-26 05:59:34
问题 I can\'t get my refresh token with my code. I can only get my access token, token type etc., I have followed some tutorials like putting access_type=offline on my login URL: echo \"<a href=\'https://accounts.google.com/o/oauth2/auth?\" . \"access_type=offline&client_id=123345555.apps.googleusercontent.com& \" . \"scope=https://www.googleapis.com/auth/calendar+https://www.googleapis.com/auth/plus.me&response_type=code& \" . \"redirect_uri=http://www.sample.com/sample.php&state=/profile\'

Not receiving Google OAuth refresh token

帅比萌擦擦* 提交于 2019-11-26 01:24:51
问题 I want to get the access token from Google. The Google API says that to get the access token, send the code and other parameters to token generating page, and the response will be a JSON Object like : { \"access_token\" : \"ya29.AHES6ZTtm7SuokEB-RGtbBty9IIlNiP9-eNMMQKtXdMP3sfjL1Fc\", \"token_type\" : \"Bearer\", \"expires_in\" : 3600, \"refresh_token\" : \"1/HKSmLFXzqP0leUihZp2xUt3-5wkU7Gmu2Os_eBnzw74\" } However, I\'m not receiving the refresh token. The response in my case is: { \"access

Android java.lang.VerifyError?

霸气de小男生 提交于 2019-11-26 00:55:04
问题 In my Android app, I always get VerifyErrors! And I cannot figure out why. Whenever I include a external JAR, I always get VerifyErrors when I try to launch my app (except for once, when I included Apache Log4j.) I usually get around this by taking the source of the library and adding it to my project, but I am trying to put the GData client library. I can get this in source, but it\'s dependencies (mail.jar, activation.jar, servlet-api.jar) I cannot, so I get verify errors. I would like to