oauth

paypal rest api credential via oauth

时光毁灭记忆、已成空白 提交于 2020-01-06 07:14:11
问题 I'm using paypal's rest API https://developer.paypal.com/webapps/developer/docs/api/ Whenever I use API to fetch orders etc I need a id and secret key to request access token. Then I can fetch them. I'm thinking is there anyway to get the id and secret key via OAuth? Just like storenvy.com does. They connect with paypal login. Then fetches the orders / transactions. Any idea? 回答1: Sorry didn't notice this question until now - this is currently not possible. What we intend to support in the

Twitter oauth problem with frindship/create in api

放肆的年华 提交于 2020-01-06 06:49:08
问题 I am using Google Data API sample touch application, which is available at code.google.... I am having a problem can any one help. Please tell me if I am doing some thing wrong. The user who has loged in has to follow some person XYZ (just using XYZ for security purpose). I am using the URL urlStr = @"http://api.twitter.com/1/friendships/create/XYZ.xml"; NSURL *url = [NSURL URLWithString:urlStr]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; //made post as requested

How to correctly sign an HTTP request to Twitter's REST API v1.1 in NodeJS?

别说谁变了你拦得住时间么 提交于 2020-01-06 03:55:06
问题 I'm only getting error 32 "Could not authenticate you" when I call twitter.request() (defined in my cloud/twitter.js file) inside Parse Cloud Code. I've done everything Twitter told me to do in "Creating a Signature" and "Authorizing a request" at dev.twitter.com, but I cannot seem to find how to do so. Has anyone else had experience with accessing the Twitter REST API v1.1 using Parse Cloud Code? P.S. You can assume I have the user's "access token" and "token secret" in a Parse.User as

Etsy API Image upload error

孤街浪徒 提交于 2020-01-06 03:37:24
问题 I have an oauth connection - it works well with all other requests, but one: upload image for listings. Here is the code: $connection = $this->getEtsyConnection(); $imageApiUrl = 'https://openapi.etsy.com/v2/listings/'.$listingId.'/images'; $mimeType = mime_content_type($source_file); $filesize = filesize($source_file); $params = ['@image' => ''.$source_file.';type='.$mimeType, 'rank'=>1, 'overwrite'=>true, 'listing_id'=>intval($listingId) ]; $header = [ 'Content-Type' => 'multipart/form-data

Error using OAuth2 to connect to dropbox in Python

这一生的挚爱 提交于 2020-01-06 01:33:11
问题 On my Raspberry Pi running raspbian jessie I tried to go through the OAuth2 flow to connect a program to my dropbox using the dropbox SDK for Python which I installed via pip. For a test, I copied the code from the documentation (and defined the app-key and secret, of course): from dropbox import DropboxOAuth2FlowNoRedirect auth_flow = DropboxOAuth2FlowNoRedirect(APP_KEY, APP_SECRET) authorize_url = auth_flow.start() print "1. Go to: " + authorize_url print "2. Click \"Allow\" (you might have

More settings for the facebook php API

和自甴很熟 提交于 2020-01-05 19:20:15
问题 Maybe I searched completely in the wrong way, and the facebook documentation pretty much sucks in my opinion. I was wondering, I'm connecting to facebook with the settings below and that works (I'm able to retrieve the profile information of the logged in user allows my application to access his profile.) Are there other options I can set, like the callback url and the expiration (which I want to set to never, so I can save the token in my db and re-use it)? This is the config now: $facebook

Yii-User and Yii-eauth integration

一笑奈何 提交于 2020-01-05 14:57:21
问题 I am trying to put together an application using yii-user and yii-eauth extensions but I am coming up short. When I create a new webapp and install eauth I can get it to work fine so I know that I am not doing anything wrong on that end. I think the problem lies with my urls. This is a demo of what it is supposed to be like: http://nodge.ru/yii-eauth/demo/login. When someone clicks on say google it should bring you to the google sign in page but on my application I am getting a 404 error that

How do I customize and use Phirehose functions?

若如初见. 提交于 2020-01-05 11:47:44
问题 I'm trying to put in a check for Phirehose to stop running after 10 seconds or 100 tweets...basically, I want to be able to stop the script. I was told I could customize the statusUpdate() function or the heartBeat() function, but I'm uncertain how to do that. Right now, I'm just testing with the filter-track.php example. How do I customize the functions, and where should I call them in the class? class FilterTrackConsumer extends OauthPhirehose { /** * Enqueue each status * * @param string

git, oauth2 token and GIT_ASKPASS

非 Y 不嫁゛ 提交于 2020-01-05 10:05:14
问题 I'm using Bitbucket and would like to get an automatic pull/push/clone working without using my plane password. I made some progress with generating Oauth2 access tokens for that purpose. My script looks like this: consumer_key=XXXXXXXXXXXXXXXXXX consumer_secret=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX oauth2_return_str=$(curl -X POST https://bitbucket.org/site/oauth2/access_token -u "${consumer_key}:${consumer_secret}" -d grant_type=client_credentials 2>/dev/null) oauth2_token=$(echo $oauth2_return

Passport.js & Facebook Graph API

依然范特西╮ 提交于 2020-01-05 10:03:09
问题 I have some issue with Passport.js and Facebook Graph API 2.0. I cannot get my own friend list (returning empty array, but working fine if I requesting my own feed) if using the access token that I got from Passport but it is working fine if I copy the access token that I got from the Facebook graph explorer. Anyone have experience this issue? I need your help. So, here is some of my code: the routes and scope: app.get('/auth/facebook', passport.authenticate('facebook', { scope: ['user