@@ 91-100 (lines=10) @@ | ||
88 | /** |
|
89 | * {@inheritDoc} |
|
90 | */ |
|
91 | public function getBase() |
|
92 | { |
|
93 | return [ |
|
94 | 'oauth_consumer_key' => $this->config->getClientCredentialsIdentifier(), |
|
95 | 'oauth_nonce' => $this->nonceGenerator->generate(), |
|
96 | 'oauth_signature_method' => $this->signer->getMethod(), |
|
97 | 'oauth_timestamp' => "{$this->getCurrentTimestamp()}", |
|
98 | 'oauth_version' => $this->getVersion(), |
|
99 | ]; |
|
100 | } |
|
101 | ||
102 | /** |
|
103 | * {@inheritDoc} |
@@ 157-166 (lines=10) @@ | ||
154 | * |
|
155 | * @return array |
|
156 | */ |
|
157 | public function getBaseProtocolParameters() |
|
158 | { |
|
159 | return [ |
|
160 | 'oauth_consumer_key' => $this->config->getClientCredentialsIdentifier(), |
|
161 | 'oauth_nonce' => $this->nonceGenerator->generate(), |
|
162 | 'oauth_signature_method' => $this->signer->getMethod(), |
|
163 | 'oauth_timestamp' => "{$this->getCurrentTimestamp()}", |
|
164 | 'oauth_version' => '1.0', |
|
165 | ]; |
|
166 | } |
|
167 | ||
168 | /** |
|
169 | * Add signature parameter to the given protocol parameters. |