package updates
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* Nexmo Client Library for PHP
|
||||
*
|
||||
* @copyright Copyright (c) 2016 Nexmo, Inc. (http://nexmo.com)
|
||||
* @license https://github.com/Nexmo/nexmo-php/blob/master/LICENSE.txt MIT License
|
||||
*/
|
||||
|
||||
namespace Nexmo\Client\Credentials;
|
||||
|
||||
class OAuth extends AbstractCredentials implements CredentialsInterface
|
||||
{
|
||||
/**
|
||||
* Create a credential set with OAuth credentials.
|
||||
*
|
||||
* @param string $consumerToken
|
||||
* @param string $consumerSecret
|
||||
* @param string $token
|
||||
* @param string $secret
|
||||
*/
|
||||
public function __construct($consumerToken, $consumerSecret, $token, $secret)
|
||||
{
|
||||
//using keys that match guzzle
|
||||
$this->credentials = array_combine(array('consumer_key', 'consumer_secret', 'token', 'token_secret'), func_get_args());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user