I want to use magento rest api authorization for my web application customers, I found in docs that there is /customers/:customerId request, to get information about user, but I can't understand, how to get customerId to make this request. Is there such a method in Magento REST API and if not, how I can get authorized customer Id via REST API.
There is a REST service to get a list of all existing customers and their customerId. Its a GET request to /customers. You can find its description in the REST API docs http://www.magentocommerce.com/api/rest/Resources/resource_customers.html#RESTAPI-Resource-Customers-HTTPMethod-GET-customers
Unfortunately there is no service to authenticate users using username and password that I know of. Not even in the SOAP API that has much more services than the REST API.
Related
So it seems like https://developer.paypal.com/docs/api/identity/v1/ only works if you're using Connect with Paypal API. This isn't an option at the moment. I have a Paypal widget within my dashboard and users can add multiple accounts. I need an email or name to help my users distinguish this account from their others. I tried using /userinfo but I only received the user_id property.
Is there something I can do differently to get email/name from this endpoint or is there somewhere else I can get this data? This workflow is best for users but if needed I can have them manually enter the info on my application
What ended up working for me was making sure all permissions per enabled and I added my return URL. I was doing this to setup connect with paypal button but then tried a postman request and realized I could now get all user info needed
I've been looking for a way to get SendGrid stats for specific campaigns. I can see the stats on the Campaigns page of the SendGrid dashboard, but I can't find an API endpoint to get that data.
I could retrieve the Global and Overview stats, no problem, but in this case, those are not helpful for me. I need per-campaign stats. Is there a way to get those reports through the API?
Campaign level stats are not available via the official Sendgrid API, at least not that I could find.
However, there are a couple of undocumented URLs you can use to get campaign level stats:
https://sendgrid.com/marketing_campaigns/campaigns/CAMPAIGN_ID/stats.csv
^ this returns data in CSV format
https://sendgrid.com/marketing_campaigns/campaigns/CAMPAIGN_ID/stats.json
^ this returns data in JSON format
Note that these are the endpoints used by the Sendgrid web client, and so require authentication via Cookie token.
To obtain a token you can use the https://api.sendgrid.com/v3/public/tokens endpoint, and send your username and password in the payload.
Then you can send that token as a Cookie along with your requests to the above Sendgrid web client endpoints. Note, you must use cookie name mako_auth_token.
I solved my situation by creating unique (ID-like) categories for each campaign. This way, I can use the Category Stats API Endpoint. It's not a semantically correct usage of categories, but this is the only way I found to achieve this.
Update July 2017:
I also achieved this goal + much more by using SendGrid Subusers and the on-behalf-of: subuser_<username> header (search on behalf of subuser in the left searchbox). This header allows you to create requests using the parent account on behalf the subuser.
I want to setup the neteller merchant api in my website that my client can pay me.
anyone can give me a overall guideline? I search over the internet but cannot find the proper solution
thanks In advance
Are you going to integrate just wallet payments, or you want to integrate the NETELLERgo! payment gateway as well? The steps for both solutions are different.
Anyway, in general, first off you will have to setup your merchant account for use with the NETELLER REST API. The steps include:
Go to your merchant account >> "Developer" tab >> "Documentation" page and download the latest REST API Reference guide. You will need that a lot.
Set up the IP addresses from which your webserver will be accessing the NETELLER API. You can do it from your merchant account >> “Developer” tab >> ”API Settings” page. See the the REST API guide, page 18.
Create a new App. This step is necessary in order to get REST API access credentials. This can be done from your merchant account >> “Developer” tab >> ”Apps” page. See the REST API guide, page 19.
Now you are ready to use your merchant account for requests to the NETELLER REST API.
If you are going to integrate just NETELLER wallet payments, the rest of the steps would be:
Get access token. Your application will first need to obtain an access token in order to be able to make a request to a resource in the API. To do that, you will need the “client_id” and “client_secret” values, which were generated during Step 3) above. More details are available in the REST API guide, page 41. Please note that you will need to get a new token for each request you make to the API.
Create a deposit/withdrawal. Using a new token from Step 1) above, make a request to the REST API for an incoming/outgoing transfer. You will need to build a form, which collects the customer's payment credentials and passes them in the API request. More details are available in the REST API guide, pages 54 and 58.
This integration requires you to build the payments page - there is no redirection to the NETELLER gateway, just 2 API requests and the payment is done.
If you are going to integrate NETELLERgo!, follow these steps:
Get access token. (see above)
Create an order. Using a new token from Step 1) above, make a request to the REST API for a new order. More details are available in the REST API guide, page 63.
Redirect the user – In response to step 2) above, you will receive a link to a hosted payment page where you need to redirect the customer to complete the payment.
Implement webhooks – You will need to implement webhooks for payment events, which will handle confirmation of the transaction status. More details on webhooks are available in the REST API guide, page 108.
I'm a beginner in using Bigcommerce API and I have done Auth callback and load callback successfully. My question is how do I get the products in my app store? I just have a client_id and client_secret do I really need to use Legacy API account like using the username and api key or is there anyway i can just use my app client id and client secret in getting some data from bigcommerce. What is the use of signed_payload?
Hi I wanna use klout api to get user's score of facebook or twitter. But I could not make a app like what I did when I am using facebook or twitter api. I have two keys: one is oauth key and one is partner key, what's the difference?? How do I make calls using klout apis? I tried here, but still could not make successfully calls, or even add a login button in my page, could someone help me and give me some sample code please, thanks!
Have you registered for an account and received API keys? A few points:
The OAuth API is moderated. Keys generated for it are not activated until approved. You would not be able to add a login button to your page until applying and being approved for a key.
The V2 API is more open, but still requires you to register at http://developer.klout.com/member/register
You cannot currently lookup Facebook users on the API due to Facebook's Platform Terms of Service.
The samples on the pages are generally incomplete in that they require you to include the key, have an active application profile, and have the callback URL set on that application profile.