Skip to content

Instantly share code, notes, and snippets.

View gjsoulman's full-sized avatar

Gary Solomon gjsoulman

  • Wide Open Technologies
View GitHub Profile
@gjsoulman
gjsoulman / curl_put_spreedly.php
Created June 18, 2011 18:12
PHP CURL PUT to Spreedly Core
<?php
$apiLogin = 'Ll6fAtoVSTyVMlJEmtpoJV8Shw5';
$apiSecret = 'RKOCG5D8D3fZxDSg504D0IxU2XD4Io5VXmyzdCtTivHFTTSylzM2ZzTWFwVH4ucG';
$paymentToken = 'N2V9GWfTgYv4jXAz2vcc4T3i8f6';
$url = 'https://spreedlycore.com/v1/payment_methods/' . $paymentToken . '/retain.xml';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_USERPWD, $apiLogin . ':' . $apiSecret);