megawubs / trakt-api-wrapper

A Object Oriented PHP wrapper for the trakt api
34 stars 19 forks source link

Client Id not being sent #3

Closed mastermike14 closed 9 years ago

mastermike14 commented 9 years ago

When calling trakt->authorize() the client id is not being sent to trakt raising a oauth error

mastermike14 commented 9 years ago

in the Trakt Class i have the code

 public function __construct($clientId, $clientSecret, $redirectUrl)
{
    $this->clientId = ClientId::set($clientId);
    $this->clientSecret = $clientSecret;
    $this->redirectUrl = $redirectUrl;
}

and the ClientId class

class ClientId extends AbstractParameter
{

}

thus making the client id null because that method doesnt even exist in the code. I change the code to the supplied client id

    $this->clientId = $clientId;

And it works just fine

megawubs commented 9 years ago

Fixed with: 4a74f68a959ccd934453bc3f323a188df6b14b4f