Skip to content

Instantly share code, notes, and snippets.

@samuelchan22
Last active August 24, 2017 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuelchan22/d58785948af9af15fea89d6b6bd90568 to your computer and use it in GitHub Desktop.
Save samuelchan22/d58785948af9af15fea89d6b6bd90568 to your computer and use it in GitHub Desktop.
Transifex Webhook API
curl -i --user api:<token> -X POST api.transifex.com/organizations/transifex/projects/website-project/webhooks/ -d '{"url":"https://hooks.zapier.com/hooks/catch/2543117/2prft5/","status":"active","event_type":"translation_completed", "secret_key": "my secret"}' -H "Content-Type: application/json"
HTTP/1.0 200 OK
...
{
"id": 12346
"secret_key":"my secret",
"url":"https://hooks.zapier.com/hooks/catch/2543117/2prft5/",
"event_type":"translation_completed",
"status":"active"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment