all-about-apikey/codestats/README.md

953 B

CodeStats

Description

Automatic time tracking for programmers

Example Request

  • Curl
curl -XPOST "https://codestats.net/api/my/pulses" -H "X-API-Token: {{token}}" -d '{"coded_at": "2016-04-24T01:43:56+12:00","xps": [{"language": "C++","xp": 15},{"language": "Elixir", "xp": 30},{"language": "EEx","xp": 3}]}'
  • Raw
POST /api/my/pulses HTTP/1.1
Host: codestats.net
X-API-Token: {{token}}
Content-Length: 140

{
  "coded_at": "2016-04-24T01:43:56+12:00",
  "xps": [
    {"language": "C++",    "xp": 15},
    {"language": "Elixir", "xp": 30},
    {"language": "EEx",    "xp": 3}
  ]
}

Response

  • Success
{
    "ok": "Great success!"
}
  • Error
{
    "error": "You must be authenticated"
}

Regex

SFMyNTY\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*$

Example API key

SFMyNTY.OEotWWdnPT0jI01qaz0.X0wVEZquh8Ogau1iTtBihYqqL71FD8N6p5ChQiIpaxQ....