File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 9
9
$ data = array (
10
10
array (
11
11
'username ' => 'user ' . mt_rand (),
12
- 'platform ' => 'gittip ' ,
12
+ 'platform ' => 'gratipay ' ,
13
13
'amount ' => '0.02 ' ,
14
14
),
15
15
array (
16
16
'username ' => 'user ' . mt_rand (),
17
- 'platform ' => 'gittip ' ,
17
+ 'platform ' => 'gratipay ' ,
18
18
'amount ' => '0.02 ' ,
19
19
),
20
20
);
21
21
22
22
$ curl = new Curl ();
23
23
$ curl ->setHeader ('Content-Type ' , 'application/json ' );
24
24
$ curl ->setBasicAuthentication (GRATIPAY_API_KEY );
25
- $ curl ->post ('https://www.gittip .com/ ' . GRATIPAY_USERNAME . '/tips.json ' , json_encode ($ data ));
25
+ $ curl ->post ('https://gratipay .com/ ' . GRATIPAY_USERNAME . '/tips.json ' , json_encode ($ data ));
26
26
27
27
foreach ($ curl ->response as $ tip ) {
28
28
echo $ tip ->amount . ' given to ' . $ tip ->username . '. ' . "\n" ;
You can’t perform that action at this time.
0 commit comments