Bigcommerce Simple Click App in getting products - php

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?

Related

Verify Cognito identity in PHP backend API

I have bit of a confusion here, I am working on an android application, with PHP backend. I use other AWS libraries for most of the tasks but transactions and etc I kept for backend. I use retrofit for handling PHP api calls and responses. I am quite confused here, is there any way where I can determine cognito identity id of user making request to my web API using PHP? Using API gateway I will be able to restrict access only for logged in users, but determining their identity is receiver API is quite confusing for me.
Update :
I do not wish to use API gateway in any term. It's buggy most of time requests times out. Server provides better performance for current situation.
Any clue or help will be very appreciated.
Since you already have a user database, you will need to use "developer" identities in Cognito.
You need to create an "Identity Pool" in the "Federated Identites" section of Cognito.
From there you register a "Custom" authentication provider.. Basically it's a string that you will associate your users ID with...
Then you will use the CogintoIdentity->getOpenIdTokenForDeveloperIdentity() method to sign in your users in amazon.
You will be returned an IdentityID and an OpenID session token that you can send to STS to get temporary credentials to the AWS API... you can also use this new identity to create datasets associated to the Identity with CognitoSync
$cognitoIdentityClient->getOpenIdTokenForDeveloperIdentity([
'IdentityPoolId'=>'Your Pool ID',
'Logins'=>[
'your.custom.provider.string'=>'YOUR USER ID'
]
]);
EDIT:
After obtaining an IdentityId... In my mobile application, I use custom HTTP Headers to send over the IdentityId, and also the User ID and use "lookupDeveloperIdentity" method to validate the user on the server side.
$cognitoIdentityClient->lookuoDeveloperIdentity([
'IdentityPoolId'=>'Your Pool ID',
'DeveloperUserIdentifier'=>'{X_HTTP_USER_ID}',
'IdentityId'=>{X_HTTP_COGNITO_IDENTITY_ID}
]
]);

Get WooCommerce products using REST api without any middleware in Android App

Is it possible to retrieve all WooCommerce product data to android app using REST api with HTTP method.
I've website where I've enabled REST api and I want to retrieve that data into mobile app. Is it possible without any middleware ?
If not, which PHP framework will be easier for this ?
You don't need to use any PHP Framework for this!
What you just need to do is written at this link.
And you can find how to call woocommerce rest apis here
Then you just need to call the API directly from your android code. You may be using something like volley for doing your network communication in android.

How to get current customer id magento rest api

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.

twitter rest api v 1.1 in flash application + php

First, I've create a app twitter and read the documentation that the rest api v1.0 will not supported(available) longer and the new one is v1.1
Then, I've develop a flash app that utilize twitter by retrieve user's profile and that profile will be the base for data comparison process.
How I can build a sign-in twitter mechanism so when the user succesfully sign-in the apps get the profile data and will do some comparison mechanism? Is ther any tutorial about this especially work around with twitter rest api v1.1?
And what about consumer key, consumer secret, Access token secret, Access token?
Sorry if ask a lot questions because some tutorial I found in internet not work properly.
So far I have only found the following library in github.com, but yet to decipher the usage of the library:
https://github.com/susisu/Twitter-for-AS3

Is it klout api uncompleted yet? Having issus get data through it

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.

Categories