I am trying to create a shopify app which integrates a fulfillment service with my shop. I am trying to fetch shipping addresses from the fulfillment service. For this i have a register a carrier service using API which will accept my callback url from where shopify will fetch the shipping addresses. Now, how can i perform authentication for this step? How only registered users for my fulfillment should able to get shipping rates from this url. Does this url needs to return data in some predefined format? Or Shopify can fetch the rates from the url? Can someone please elaborate more on generating a carrier service in Shopify, authentication, format like these things.
Carrier API calls from Shopify to your App follow the exact same security principle as Webhooks. This means you can authenticate calls from Shopify to your endpoint and not return rates to just anyone. You return JSON with rates. They provide a sample in their Github account. They do not explain how to handle dates very well, you will have to do as I did, experiment and adjust your results as you see how date handling works.
Related
I'm currently trying to use Google My Business API to get reviews for each location of my company. The problem is that i want to use the reviews methods but I can't use them without my account_id. To have it i know i can do the following request:
https://mybusinessaccountmanagement.googleapis.com/v1/accounts
The problem is that when I try to execute it, I have a 429 error saying that the quota of requests for the mybusinessaccountmanagement is exceeded. When I go to the My Business Account Manager page on my Google Cloud Platform Console, i can see that the Quota for this API is setted at 0 and I can't modify it because they ask for my account to have a facturation account.
Do you have any idea of how can I get my account_id to make my request with the Google My Business API?
Thank you
The Google My Business API is restricted by default because of its ability to access sensitive information and so requires approval before you are allowed to use it.
https://developers.google.com/my-business/content/prereqs#request-access
The prerequisites page calls this out and provides a link to the form to submit your application to gain access. Until you are approved through that process, your API quota will stay at 0.
I retrieved an access token from my server and have connected the JavaScript SDk chat client like so. I have created a channel like so. The next step I'd like to invite a user like this. In that example they invite the user 'elmo'. Where do I get 'elmo' or how do I present the user with a selection of possible 'elmo's? The client sdk has no list users functionality.
Edit:
It looks like the REST API has a list users method. But can't find any examples of it used. Should the 1st person chat client be using the REST API as well to supplement gaps in the client SDK or should it get the identity from backend? Our team has different interpretations of the docs: twilio REST API is strictly for backend vs. twilio REST API can and should be used any where. Moved to twilio REST API: strictly backend?
Twilio developer evangelist here.
In my opinion Twilio's Chat API should not be the central source of truth of the users in your system. I don't know anything more about your application than what you've written here, but I would expect that you have a user model within your own system that you have used to generate or create an identity that is then used by the Chat API as well as how your user logs in to your system. I would then use that user model to connect users and provide their identities so that they can join chats together.
I was just wondering if there was a simple function to create a customer in the Stripe API from my app in Swift? Instead of having to create a manual HTTP post request to my server, "createCustomer.php", and then retrieve the results (This is what I do right now).
I tried to search this up on Google, but I can't seem to find anything. I simply want the user to save their card details for later user, that's why I am in need of creating a customer.
Thanks in advance!
Except for payment information tokenization (which is done via Stripe's iOS or Android SDKs in mobile apps, and Checkout or Stripe.js in web apps), all API requests must be sent from a backend server.
The reason is that aside from token creation, all other API requests must be sent using your secret API key. You cannot embed or share the secret API key with your mobile app in any way, as it would then be possible for an attacker to retrieve it and use it to issue API requests on your behalf.
This is why there is no Swift function to create a customer -- the customer creation must be done from your backend, using the server-side language of your choice.
Is it possible to send payments via Quickbooks Online API?
We are looking to basically initiate a ACH transfer from the QBO Client's bank account to another account, not just record a transaction.
Is this possible? If so via which API / Method? I have been looking all over the QB Documentation and can't find a clear answer. Support calls say it's possible but don't give any direction where to get stated.
I have already registered as a developer, created an app and have been able to implement authorization and tokens and manipulate basic QBO Data, jsut need to figure out where or how to send payments if possible.
Is it possible to send payments via Quickbooks Online API?
No.
I need your suggestion regarding which Paypal API to use for my following requirement:
I am developing a application for Order management & Shipping in which I need to fetch order details like Billing & Shipping Address information + Item/product details + Billing amount etc on behalf of various merchants.
I will be fetching the data in two ways:
1. Initial onetime fetch to get all orders till date.
2. Regular fetch to get new orders.
Can you please suggest which API calls will get me the required data?
So, I have found a solution for this through Paypal forum & API docs. Wanted to add the solution here so that it is helpful to other stackoverflow folks.
To lookup what transactions took place I can use the TransactionSearch API, say with the date range.
To get details of a particular transaction I can use GetTransactionDetails API.
Since I have to do it on behalf of various merchants, I can use the Paypal Permissions API to allow merchants to authenticate me for making API calls on there behalf.