API Tutorials

#1
03/09/2013 16:53
Avatar

Cliqdrag

Member
Hi. I was wondering I am not familiar with APIs and how to incorporate them into my html. Is there any recommended video tutorials on API and t-shirtgang? Thanks.
#2
03/09/2013 21:35
Avatar

Andrew Lyle

Administrator
Hi!

I have actually compiled a test script in PHP on our API page here:
http://tshirtgang.com/cp/api#download

This is only one example of code to use, you do need to be familiar with XML and any language of your choosing. XML is very simple to understand, it's very much like HTML if you're unfamiliar with it.

The download link however, is only an example of our Create Order API. It will show you how to fill out the XML and post it via PHP and cURL.

You would incorporate this script in your checkout page where you would confirm your payment. If you're looking for an easy script, you can check stackoverflow.com for PayPal IPN scripts and incorporate the API there.

Developer / Project Manager
Tshirtgang.com
Support Tickets
Twitter: @phpandrew
#3
10/09/2013 02:39
Avatar

Cliqdrag

Member
I will attempt...Thanks!
#4
10/09/2013 17:39
Avatar

Cliqdrag

Member
If I am using paypal will I have to grant you access to my account?
#5
10/09/2013 18:26
Avatar

Andrew Lyle

Administrator
QUOTE:
If I am using paypal will I have to grant you access to my account?


Never! You will accept all payments first, then submit orders through Tshirtgang and pay for it like regular.

Andrew

Developer / Project Manager
Tshirtgang.com
Support Tickets
Twitter: @phpandrew

You must be logged in to reply.