From 6d097dfc01790ec9943baa7a2cd229ed969fa74e Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Mon, 20 Oct 2014 22:26:53 -0700 Subject: [PATCH 1/2] Rename Gittip to Gratipay --- examples/{gittip_send_tip.php => gratipay_send_tip.php} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename examples/{gittip_send_tip.php => gratipay_send_tip.php} (100%) diff --git a/examples/gittip_send_tip.php b/examples/gratipay_send_tip.php similarity index 100% rename from examples/gittip_send_tip.php rename to examples/gratipay_send_tip.php From 06d71609885617cc87f6aae425744b1fd6651bac Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Mon, 20 Oct 2014 22:27:30 -0700 Subject: [PATCH 2/2] Rename variables from Gittip to Gratipay --- examples/gratipay_send_tip.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/gratipay_send_tip.php b/examples/gratipay_send_tip.php index bfd98a2..97638b0 100644 --- a/examples/gratipay_send_tip.php +++ b/examples/gratipay_send_tip.php @@ -3,8 +3,8 @@ require '../src/Curl/Curl.php'; use \Curl\Curl; -define('GITTIP_USERNAME', 'XXXXXXXXXX'); -define('GITTIP_API_KEY', 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'); +define('GRATIPAY_USERNAME', 'XXXXXXXXXX'); +define('GRATIPAY_API_KEY', 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'); $data = array( array( @@ -21,8 +21,8 @@ $data = array( $curl = new Curl(); $curl->setHeader('Content-Type', 'application/json'); -$curl->setBasicAuthentication(GITTIP_API_KEY); -$curl->post('https://www.gittip.com/' . GITTIP_USERNAME . '/tips.json', json_encode($data)); +$curl->setBasicAuthentication(GRATIPAY_API_KEY); +$curl->post('https://www.gittip.com/' . GRATIPAY_USERNAME . '/tips.json', json_encode($data)); foreach ($curl->response as $tip) { echo $tip->amount . ' given to ' . $tip->username . '.' . "\n";