catch up with rename

Filename and envvars were updated, but platform and URL weren't.
This commit is contained in:
Chad Whitacre
2014-12-23 14:52:49 -05:00
parent 4bb926c831
commit 1a0e9c1f4b
+3 -3
View File
@@ -9,12 +9,12 @@ define('GRATIPAY_API_KEY', 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX');
$data = array(
array(
'username' => 'user' . mt_rand(),
'platform' => 'gittip',
'platform' => 'gratipay',
'amount' => '0.02',
),
array(
'username' => 'user' . mt_rand(),
'platform' => 'gittip',
'platform' => 'gratipay',
'amount' => '0.02',
),
);
@@ -22,7 +22,7 @@ $data = array(
$curl = new Curl();
$curl->setHeader('Content-Type', 'application/json');
$curl->setBasicAuthentication(GRATIPAY_API_KEY);
$curl->post('https://www.gittip.com/' . GRATIPAY_USERNAME . '/tips.json', json_encode($data));
$curl->post('https://gratipay.com/' . GRATIPAY_USERNAME . '/tips.json', json_encode($data));
foreach ($curl->response as $tip) {
echo $tip->amount . ' given to ' . $tip->username . '.' . "\n";