/** * Test email creation */ public function testSigning() { $create = new Create($this->emailListId, $this->email); $this->assertSame('147b861878241cd0040fa9297c3db54e03b93382:' . $this->timestamp, Signer::sign($create, $this->authKey, $this->timestamp)); }
/** * Get the request headers * * @param CommandInterface $command * @return array */ public function getHeaders(CommandInterface $command) { return ['x-authid' => $this->authId, 'x-authkey' => $this->authKey, 'signature' => Signer::sign($command, $this->authKey), 'content-type' => $command->getContentType()]; }