Skip to content

Instantly share code, notes, and snippets.

What would you like to do?

How to Use Pixela

Memorandum about steps to create new Pixela user and graph (MacOS 10.13.4)

Create New User

I used sha256hash text as the value of token

$ shasum -a 256
$ curl -X POST -d '{"token":"${sha256hash}", "username":"wifeofvillon", "agreeTermsOfService":"yes", "notMinor":"yes"}'

Create New Graph

$ curl -X POST -H 'X-USER-TOKEN:${sha256hash}' -d '{"id":"test-graph","name":"graph-name","unit":"commit","type":"int","color":"shibafu","timezone":"Asia/Tokyo"}'

Then, the new graph has been created


Type it if wanna get via CUI:

$ curl -X GET

Update Pixela Values (POST)

$ curl -X POST -H 'X-USER-TOKEN:${sha256token}' -d '{"date":"20181113","quantity":"5"}'

Then, 5 is reflected on Nov, 13 in the graph


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment