Sign ApiRequest using Oauth1 using the specified key, secret, and algorithm, along with token and tokenKey, if provided. Returns a new ApiRequest with a header that has the name provided in the authHeader arg. Additionally you can optionally provide verifier and/or callback. The following algorithms are supported: HmacMD5, HmacSHA1, HmacSHA256, HmacSHA384, and HmacSHA512.
Body
function(
apiRequest, // ApiRequest
key, // String
secret, // String
algorithm, // String
authHeader, // String
token, // Option[String]
tokenSecret, // Option[String]
verifier, // Option[String]
callback, // Option[String]
) {...}