Using paypal permission sdk, I got token and tokenSecret after granting the permission. Then using the Oauth, I have received the signature key. Now I want to call the Express Checkout call with this signature? How its possible?
This is the step I did in the permission API,
Get the Classic Api credentials from Sandbox with Application ID
Using the Permission API.. Finally i got Access token and token Secret.
Then using paypal OAuth.. received the signature.
Now I am stuck with next step. Even I didn't get the call "GetBasicPersonalData"
Related
I am using the srmklive package for Laravel and have set up a sandbox account on the Paypal API dashboard and it works. I am trying to port it over to use the customer's live business account on Paypal but I can't map across the API credentials. The sandbox uses the following:
PAYPAL_CLIENT_ID=
PAYPAL_CLIENT_SECRET=
PAYPAL_MODE=
But all I see when I generate the details on Paypal business account is
API Username
API Password
Signature
How I go about using these on the srmklive package?
Go to https://developer.paypal.com and create an app. Then click on the app and you will see client id and secret. It seems like you were going through your normal account page at paypal.com and not the developer portal.
I need to use Quickbooks online API to synchronize data between my system and my client's accounts on quickbooks.
I need to know if is it possible to complete the oauth2 authorization flow and make API calls without human interaction (without the need to interact with Intuit's authentication and authorization windows)?
I read the Intuit's docs on: https://developer.intuit.com/docs/0100_quickbooks_online/0100_essentials/000500_authentication_and_authorization/connect_from_within_your_app
On the first step, I made a GET request to:
https://appcenter.intuit.com/connect/oauth2?client_id=MY_ID&scope=com.intuit.quickbooks.accounting&redirect_uri=https%3A%2F%2FMY_NGROK_URL.ngrok.io%2FOAuth2PHPExample.php&response_type=code&state=RandomState#/Authorize/COMPANY_ID
Then, the Intuit's authentication and authorization windows opens and I need to put my username and password and then, click in the authorize button to get the authorization code.
Is there a way to obtain the authorization code without authenticate and authorize?
I need to automate this task to make API calls in the backend with PHP.
Thanks,
Marcelo.
Is there a way to obtain the authorization code without authenticate and authorize?
No... but read below.
I need to automate this task to make API calls in the backend with PHP.
You are misunderstanding how OAuth (either 1 or 2) works.
The very first time you connect you will be prompted to authenticate/authorize access to the QuickBooks Online data.
You are then given a refresh token (or access token depending on if you're using OAuth2 vs. OAuth1).
You then store that refresh token (or access token for OAuth1) and can use that token going forward to make your requests, unattended, without requiring the user to be involved at all.
Key take-away: You only need the user involved the VERY FIRST TIME you connect, and then never again.
Hello I need to get access to a spreadsheet from google spreadsheet API. I have enabled Google Sheets API and added API key, but this doesn't work!!!
https://sheets.googleapis.com/v4/spreadsheets/[my_spreadsheet_id]/values/A1?key=[my_api_key]
The result is:
403 - The caller does not have permission
But if I provide public access for this spreadsheet ---> it works!!!
The result is:
200 - [correct requested data .....]
The my question is:
How to get access to a private spreadsheet from the API?
I need to read and write orders data there from my website using php's functions like file_get_contents()
Basically, you need to get authorization as mentioned in the documentation.
Whenever your application requests private user data, it must send an OAuth 2.0 token along with the request. Your application first sends a client ID and, possibly, a client secret to obtain a token. You can generate OAuth 2.0 credentials for web applications, service accounts, or installed applications.
Further information from OAuth 2.0 documentation, when accessing a Google API using OAuth 2.0, all applications follow these steps:
Obtain OAuth 2.0 credentials from the Google API Console.
Obtain an access token from the Google Authorization Server.
Before your application can access private data using a Google API, it must obtain an access token that grants access to that API.
Send the access token to an API.
Refresh the access token, if necessary.
Lastly, to help you with the implementation using PHP, you may also add Authentication and authorization to your list of references. Hope that helps!
I am developing a PHP application which has to have access to the Office 365 File API.
By following the Microsoft docs I always receive the Login window back for my GET requests on the Authorization endpoint but I would like to do this transparently for my users.
What would be the correct way to do this?
(The app is already configured in the Azure AD portal, got the client_id, client_secret etc.)
I am interested in the correct flow.
Thanks.
Kornel, your application will access the O365 File API on behalf of the user (delegated access using OAuth2.0). It is expected to see the Azure AD login page when you send an authorize request to the authorize endpoint. Here the user will signin and if required "consent to" your application accessing the File API on their behalf. Once they complete signin (and consent) the browser will be redirected (or posted) back to your application with the authorization code (and id_token). Then your application will send the authorization code to the token endpoint (along with your client id and client secret) and get back access token (and refresh token) to File API.
This is the standard OAuth2.0 code grant flow. Silent login (OAuth2.0 resource owner password credential flow) is not available for web applications accessing O365 APIs.
Hope this helps.
I am using the BitBucket API through oAuth to create repositories on behalf of the team. I have set up the API to request oauth access through bitbucket and retrive the access token of the current logged in user. However, calling the api through that will create the repositories under the current user and not the team. I have the credentials for the team login but do not wish to share that.
Is there a way that I can save the access token from the team login so that the repositories will be created under the team?
Please note that this answer is generic to the implementation of OAUTH protocol.
OAuth consumers can be issued client ID's and Admin PINs.Using the combination of two access tokens can be issued as a response to API calls.