All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Help with Squareup Integration. Urgent.
K so help me out here if you can guys. docs.squaruep.com has a section which says this :
Step 4: Send your first API request
Now that you have your application credentials, you can start communicating with Square APIs! Let's start with a simple curl command.
Paste the following into a terminal and replace PERSONAL_ACCESS_TOKEN with your personal access token:
curl -H "Authorization: Bearer PERSONAL_ACCESS_TOKEN" https://connect.squareup.com/v2/locations
When the command completes, it prints JSON output representing the basic details for all of your Square business's locations. Its structure resembles the following:
{
"locations": [
{
"id": "CBASEDqu0eR0gRyr6d4TArPMZyk",
"name": "Coffee & Toffee SF",
"address": {
"address_line_1": "1455 Market Street",
"locality": "San Francisco",
"administrative_district_level_1": "CA",
"postal_code": "94103",
"country": "US"
},
"timezone": "America/Los_Angeles",
"capabilities": [
"CREDIT_CARD_PROCESSING"
]
}
]
}
Now i'm on shared web hosting and i'd like to get the location ID so i can do my integration. Do you guys know any way i can push this curl request or something through PHP and get a return in web browser with my shared hosting? I need help asap.
Comments
http://php.net/manual/en/book.curl.php
Really though you probably should get some developer help. There's lots of areas of programming where it's fine to make mistakes and learn as you go. Payment APIs are one area where every mistake can cost you money.
my advice is to use guzzle http://docs.guzzlephp.org/en/latest/
I know a lot of people have asked for a mod for it but I have not seen one out yet