I am trying to implement myPOS (https://www.mypos.eu/) with PHP with API and flutter.
Basically I want to strike API call by the Laravel from flutter app to MYPOS gateway.
I have gone through the official documents with this link. The OAuth API as per this link implemented with PHP but not able to get the results.
I have created the developer account, added the client_id, client_secrets at the required place, followed all the given steps in official document, but still not able to get the required and expected results.
It seems, at some point, the official document is missing some steps with example for the implementation.
It would be great if one can provide an example.
Related
I am new to AZURE O365 portal, I have created some users in azure portal.
How can I create API in Azure portal to get the user details which I have already created in the portal and are they users enabled or disabled using PHP.
I tried: I have created application and I created secret Id in the portal, then what I have to do, to generate API for user list using php.
please help on it.
Thanks
Sandeep
Not sure if I undestand you correctly: you created some users on the azure portal and you want to get these users using PHP?
Azure has many APIs, they also have an API for getting these users, here is the specification and example code (not in php, but I think still easy to understand):
https://learn.microsoft.com/en-us/graph/api/user-list?view=graph-rest-1.0&tabs=http
Basically you can access that data using graphql client. There are many graphql libraries for php. But as I skimmed through the docs, you don't really need a library, just a way to create http requests, I recommend Guzzle.
Before you create that php code, I recommend to simply play with the API by using postman or other api client. If it works there, you can start to create the php code.
The code is basically a http POST request (or whatever is specified in the documentation). The request should contain your API tokens in the header, thats all. Data will be provided usually as JSON. Here are some examples how to use guzzle in php for graph.
I'm simply trying to implement an event that creates an invoice on Xero everytime a payment is processed on Laravel backend. Its been 3 days now trying to install their SDK, many non official packages and I still don't understand how to do that. Their documentation is so bad, I don't understand everything with Xero either.
Question: What should I be looking for to achieve what I want? All guides and docs explain how to connect some sort of third party users with my Xero account, using oAuth2, a callback, getting tenants and such, I have found nothing about just using their API to create a new invoice to my own Xero account.
Everything I said might be plain gibberish, if so, please correct me.
Best Regards
Xero now has an official PHP SDK available on GitHub.
https://github.com/XeroAPI/xero-php-oauth2
A developer in our community created a wrapper for Laravel
https://github.com/XeroAPI/xero-php-oauth2#laravel
This starter project shows how to handle the OAuth2 flow
https://github.com/XeroAPI/xero-php-oauth2-starter
and a video showing how to use the starter project
https://www.youtube.com/watch?v=vc1d7vdWeOE
We have SDK reference docs with runnable code examples as well
https://xeroapi.github.io/xero-php-oauth2/docs/v2/accounting/index.html
I hope the above resources help
The documentation for accessing the Quickbooks Online API seems to revolve around creating applications for public use. I'm only interested in developing an app to access my very own Quickbooks file. However, I'm having difficulty authenticating.
I successfully obtain all the necessary codes and can run API calls in the API playground. My preference would be not to use any libraries (including the Quickbooks PHP library as it does not support JSON).
I have spent hours searching but I do not know how to 'sign' the various secrets and codes to obtain the Oauth token needed. Does anyone have working PHP code?
I'd like to simply be able to input in the values and make the API calls via curl.
I have spent hours searching but I do not know how to 'sign' the various secrets and codes to obtain the Oauth token needed.
You sign the code using OAuth. This is a well documented authentication method, with many implementations.
Does anyone have working PHP code?
Sure:
https://github.com/consolibyte/quickbooks-php/blob/master/QuickBooks/IPP/OAuth.php#L77
https://code.google.com/p/oauth-php/
https://php.net/manual/en/book.oauth.php
https://pecl.php.net/package/oauth
https://github.com/Lusitanian/PHPoAuthLib
My preference would be not to use any libraries
OAuth is not a trivial authentication method. You should use a library to sign your requests -- it will save you a lot of time vs. implementing your own OAuth signatures.
I am trying to run a sample PHP web application integrated with Google Wallet. Similar to this: http://iap-php.appspot.com.
I have been following the documentation provided in https://developers.google.com/wallet/objects/quickstart-php#register. I created a project. And I couldn't get Wallet Object API in the list.
And I am stuck here:
And on clicking "sign up for Wallet Objects API access", I have filled the form and got a mail from Google that:
We are reviewing your information and will update you via email on your eligibility and next steps soon.
And I am unable to continue further.
Basically I wanted to run this integration with PHP on my localhost for testing purpose. How do I setup wallet objects? What docs I have to read? From where do I have to start?
I am implemented In App Billing for android.I wanted to implement subscription validity checking through my backend server. As Google Play Documentation, for making call for Google Play API,need authentication using oauth 2.0.
I followed instructions for registering project and creating credentials. But from there I have no idea how to use those credentials, I tried authentication via CURL request, but it asking permission as shown in follwing image
This permissions works fine I can exchange code and get access token, but all this done by manually, how should I implement this on backend.
I even try to use google api php library provided by Google, but It adds confusion. Also they didn't provide any example, how to use library.
Can anybody elaborate how exactly use library or pure php?
Thanks in advance.
To perform LVL and/or IAB validation on a server, do not access Google servers directly from the server. Even if all information were available, you would face integrity problems, because your app and your server will see different information due to synchronization latencies.
Instead, use your app as a proxy and validate the Google Play information on your server as described here.