-
It could be useful during testing and development to be able to easily create annotations from the command line by making calls to the h API. How can I do that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can do this in your local development, on staging or on production.
|
Beta Was this translation helpful? Give feedback.
You can do this in your local development, on staging or on production.
Go to http://localhost:5000/account/developer and create a developer token to authenticate API requests
Make an API request fro the command line. In this example I'm using Using HTTPie:
See the docs for the annotation API.
uri
is the only required field.If you want to create an annotation in a group just add the group's
pubid
:You could easily script this. For example to create 10,000 annotations (using f…