A website I'm accessing requires an API key ID and secret key as the username and password for (I'm assuming) basic authorization.
I'm using the HTTP.get function from the HTTP module but I can't find how to include my key ID and secret key.
Example
HTTP.get("https://api.mybitx.com/api/1/balance")
and this returns "HTTP.StatusError: received a '401 - Unauthorized' status in response"
The website has an API guide but the only help they give is an example using cURL $ curl -u keyid:keysecret https://api.mybitx.com/api/1/balance
I would appreciate any help
HTTP.get(https://keyid:[email protected]/api/1/balancejulia auth = base64encode(user * ":" * pass); HTTP.get(server, headers = ["Authorization" => "Basic $(auth)"])? It's working for metemp = "Basic " * base64encode("your_api_key_here") usr = Dict("Authorization" => temp) balances = JSON.parse(String(HTTP.get("https://api.mybitx.com/api/1/balance"; headers = usr)))