uservoice / uservoice-php

PHP Client Library for UserVoice API
MIT License
9 stars 11 forks source link

APIError Exception #2

Closed 0x7061 closed 11 years ago

0x7061 commented 11 years ago

Hey there, I'm trying to implement your library and running into this error:

throw new APIError($oauthException->lastResponse);

resulting from my experimental code:

$client = new \UserVoice\Client($this->subdomainName,$this->apiKey,$this->apiSecret);
$suggestions = $client->get_collection("/api/v1/suggestions");
foreach ($suggestions as $suggestion) {
    print("${suggestion['title']}: ${suggestion['url']}\n");
}

I'm sure that I gave a valid subdomain as well as api key and secret. As it didn't throw an unauthorized exception I'm wondering what could be the cause.

Any ideas?

0x7061 commented 11 years ago

I checked it again today and now it works all of a sudden. No idea why - anyway I'm closing this!