Sign up FREE & get 250 points

Python script to demonstrate testimonials API usage

import urllib
import urllib2
import time
import json

# Set the url to testimonials
url = ""

# This key is required for all API REST calls and can be found in details of your application 
p2s_api_key = '6586df0367b681497ef77437f0c71c10ae38302e'

# Initialize the request
request = urllib2.Request(url = url)

# Set key to header
request.add_header('X-Points2shop-Api-Key', p2s_api_key)

    # Make the request
    result = urllib2.urlopen(request)
    # decode the JSON
    testimonials = json.loads(

    for testimonial in testimonials:
	print testimonial['submitted_date']
except urllib2.HTTPError, e:
    print e.getcode()


Chat History

will load when you scroll to the bottom