Skip to content

Instantly share code, notes, and snippets.

View crunchprank's full-sized avatar

crunchprank crunchprank

View GitHub Profile
@ChrisMoney
ChrisMoney / api_examples.php
Created February 15, 2012 15:34
API - Examples
API Code:
<?php
//Modify these
$API_KEY = 'your-token-here';
$SECRET = 'your-secret-here';
$TOKEN = 'your-secret-here';
$STORE_URL = 'yourestore.myshopify.com';
$PRODUCT_ID = 'product-id-here';
$url = 'https://' . $API_KEY . ':' . md5($SECRET . $TOKEN) . '@' . $STORE_URL . '/admin/products/' . $PRODUCT_ID . '.xml';