access_signature: Generate an api access signature

Description Usage Arguments

Description

The CB-ACCESS-SIGN header is generated by creating a sha256 HMAC using the secret key on the prehash string timestamp + method + requestPath + body (where + represents string concatenation). The timestamp value is the same as the CB-ACCESS-TIMESTAMP header.

Usage

1
2
access_signature(timestamp, request_path, request_body = "",
  method = c("get", "post", "put", "delete"))

Arguments

timestamp

The CB-ACCESS-TIMESTAMP header MUST be number of seconds since Unix Epoch.

request_path

path requesting

request_body

The body is the request body string or omitted if there is no request body (typically for GET requests).

method

The method should be UPPER CASE.


zamorarr/rcoinbase documentation built on May 30, 2019, 4:18 p.m.