Slide 41
Slide 41 text
$this->getNonce(),!
'oauth_callback' => $this->getCallback(),!
'oauth_signature_method' => $this->getSignatureMethod(),!
'oauth_timestamp' => time(),!
‘oauth_consumer_key' => $this->getConsumerKey(),!
'oauth_token' => ‘',!
'oauth_version' => '1.0',!
];!
!
$tempArray = [];!
ksort($params);!
foreach($params as $key => $value) {!
! $tempArray = $key . '=' . rawurlencode($value);!
}!
!
$baseString = $httpMethod . '&';!
$baseString .= rawurlencode($uri) . '&';!
$baseString .= implode('&', $tempArray);