I am trying to create an archive from node.js, and I need to pass the allow_missing parameter, because I might have invalid public ids in the list.
I have been told that this has not been implemented in the node.js package, and therefore I am attempting to call the endpoint directly.
I am trying to package 1000 (the limit) files into a zip, and so I cannot use a GET request, but need to use a POST request. I have been told previously, that this is possible.
In the documentation it states that I should do basic auth with my api key and api secret in order to authenticate. I have done this, encoded these strings and has made an Authorization header. However, I keep getting the response "unknown API key". I have tried creating the Authorization key with Postman, so I am fairly confident that it is the correct key.
My questions are:
1) How should I provide the credentials for this to work
2) I am not sure how to provide the parameters (allow_missing, public_ids, etc). Can I use e.g. JSON as a HTTP body, or must I provide them in another way?
Thanks in advance!
Please sign in to leave a comment.