Skip to content

API Support

Pinry support API accessing via token so that you could write your own client or import any pin format to your instance.

Get Token

Just go to My -> Profile page to get the token.

token-accessing

Access API via Token

Here is an example for curl to access user-profile API:

curl -X GET http://192.168.1.101:8080/api/v2/profile/users/ -H 'Authorization: Token fa3b0ed2b8a87c81323688c288642288c9570aca'

You will get response like this:

[
    {
    "username": "winkidney",
    "token": "fa3b0ed2b8a87c81323688c288642288c9570aca",
    "email": "winkidney@gmail.com",
    "gravatar": "0d7161ac663cdb21108502cd4051149c",
    "resource_link": "http://localhost:8000/api/v2/profile/users/1/"
    }
]

API reference

Just use the interactive API interface by DRF or follow the file api.js