mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 04:01:47 +00:00
catch up with rename
Filename and envvars were updated, but platform and URL weren't.
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user