Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

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

Sign In or Register to comment.