Signer
class Signer implements SignerInterface, LoggerAwareInterface
Traits
Methods
Constructs a new instance of this class.
Gets the self key that was set in the constructor.
Gets the client key that was set in the constructor.
Gets the client secret that was set in the constructor.
Sign the payload to produce a signature for its contents.
Signs and generates the query string URL parameters to use when making a request.
Details
in LoggerAwareTrait at line line 18
setLogger(LoggerInterface $logger)
Sets a logger.
at line line 56
__construct(string $client_id, string $client_secret)
Constructs a new instance of this class.
at line line 74
string
getSelfKey()
Gets the self key that was set in the constructor.
at line line 83
string
getClientId()
Gets the client key that was set in the constructor.
at line line 92
string
getClientSecret()
Gets the client secret that was set in the constructor.
at line line 101
string
sign(array $payload)
Sign the payload to produce a signature for its contents.
at line line 119
string
generateQueryStringParams(array $payload)
Signs and generates the query string URL parameters to use when making a request.
If the client_secret
key is provided, then it will be automatically excluded from the result.