Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Merge pull request #3916 from gratipay/README-tweak
Browse files Browse the repository at this point in the history
modifed payment-instructions.json section in README
  • Loading branch information
aandis committed Feb 10, 2016
2 parents 2c5ccd2 + a6da087 commit 0e7205b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ charts page used to use this.
an object giving a point-in-time snapshot of Gratipay. The
[stats](https://gratipay.com/about/stats.html) page displays the same info.

**/`%username`/public.json**
**/`~username`/public.json**
([example](https://gratipay.com/Gratipay/public.json),
[source](https://github.com/gratipay/gratipay.com/blob/master/www/~/%25username/public.json.spt))&mdash;<i>public</i>&mdash;Returns an object with these keys:

Expand All @@ -503,7 +503,7 @@ an object giving a point-in-time snapshot of Gratipay. The
- `undefined` (key not present)&mdash;no OpenStreetMap account connected
- `http://www.openstreetmap.org/user/%openstreetmap_username`
**/`%username`/payment-instructions.json**
**/`~username`/payment-instructions.json**
([source](https://github.com/gratipay/gratipay.com/www/~/%username/payment-instructions.json.spt))&mdash;*private*&mdash;Responds
to `GET` with an array of objects representing your current payment
instructions. A payment instruction is created when a ~user instructs Gratipay
Expand All @@ -523,11 +523,11 @@ E.g.:
Request
```
curl -L https://gratipay.com/username/payment-instructions.json \
-u $userid:$api_key \
-X POST \
-d '[{"amount": "1.00", "team_slug": "foobar"}]' \
-H "Content-Type: application/json"
curl https://gratipay.com/~username/payment-instructions.json \
-u $userid:$api_key \
-X POST \
-d '[{"amount": "1.00", "team_slug": "foobar"}]' \
-H "Content-Type: application/json"
```
Response
Expand Down

0 comments on commit 0e7205b

Please sign in to comment.