|
I get Zend_Service_Delicious_Exception: Http client reported an error: 'Unauthorized'thrown in Zend\Service\Delicious.php on line 501 Code: $delicious = new Zend_Service_Delicious($credentials['username'], $credentials['password']);
$delicious->createNewPost($this->getShortDescription(), $this->getUrl(false)) ->setNotes($this->comment)
->setTags(array('lol', 'sasa')) ->save(); Any idea? Regards, Saša Stamenković |
|
You're not using a Yahoo based account, are you? Yahoo ID access is only via the v2 API and OAuth. Can't think of anything else outside of a bug in the component.
http://blog.astrumfutura.com http://www.survivethedeepend.com OpenID Europe Foundation Irish Representative From: Саша Стаменковић <[hidden email]> To: Nabble Zend Framework General <[hidden email]> Sent: Fri, May 7, 2010 2:42:20 PM Subject: [fw-general] Zend_Service_Delicious_Exception: Http client reported an error: 'Unauthorized' I get Zend_Service_Delicious_Exception: Http client reported an error: 'Unauthorized'thrown in Zend\Service\Delicious.php on line 501 Code: $delicious = new Zend_Service_Delicious($credentials['username'], $credentials['password']);
$delicious->createNewPost($this->getShortDescription(), $this->getUrl(false)) ->setNotes($this->comment)
->setTags(array('lol', 'sasa')) ->save(); Any idea? Regards, Saša Stamenković |
|
Yes, yahoo based. Can I change account so it can work with this code?
Regards, Saša Stamenković On Fri, May 7, 2010 at 7:44 PM, Pádraic Brady <[hidden email]> wrote:
|
|
Yeah, you can change to a non-Yahoo account - the v1 password based auth you're trying will work on it fine. Can you create an issue for this problem regardless? I'm integrating Twitter and OAuth during the upcoming week, so I could add Delicious to that list also and spruce up the component with any fixes up on the issue tracker while I'm at it.
Paddy http://blog.astrumfutura.com http://www.survivethedeepend.com OpenID Europe Foundation Irish Representative From: Саша Стаменковић <[hidden email]> To: Pádraic Brady <[hidden email]> Cc: Zend Framework General <[hidden email]> Sent: Fri, May 7, 2010 8:22:54 PM Subject: Re: [fw-general] Zend_Service_Delicious_Exception: Http client reported an error: 'Unauthorized' Yes, yahoo based. Can I change account so it can work with this code? Regards, Saša Stamenković On Fri, May 7, 2010 at 7:44 PM, Pádraic Brady <[hidden email]> wrote:
|
|
I can fill an issue.
But still, I can't find the way to set delicous to use old way password?
Regards, Saša Stamenković On Fri, May 7, 2010 at 10:43 PM, Pádraic Brady <[hidden email]> wrote:
|
|
Depends on how you're trying to reset it? It must be an original non-Yahoo account to work - there's no other account type that can access the v1.0 API.
If you're really stuck, and what you're doing isn't overly complex you could use the component flow (if not the component) to simulate raw HTTP transactions using the Zend_Oauth http client (it's a simple subclass of Zend_Http_Client). You can use a simple PHP session to store a temporary OAuth access token (or a database/filestore if it's in continual use). There's an example of using Zend_Oauth's raw HTTP client to interact with Twitter's API in the reference guide. Paddy http://blog.astrumfutura.com http://www.survivethedeepend.com OpenID Europe Foundation Irish Representative From: Саша Стаменковић <[hidden email]> To: Pádraic Brady <[hidden email]> Cc: Zend Framework General <[hidden email]> Sent: Sat, May 8, 2010 12:31:28 PM Subject: Re: [fw-general] Zend_Service_Delicious_Exception: Http client reported an error: 'Unauthorized' I can fill an issue. But still, I can't find the way to set delicous to use old way password?
Regards, Saša Stamenković On Fri, May 7, 2010 at 10:43 PM, Pádraic Brady <[hidden email]> wrote:
|
|
Yeah, I see http://delicious.com/help/api.
Will wait for Oauth support form this service in zf, will fill an issue. It's important to have this since new accounts are created with yahoo ID.
Regards, Saša Stamenković On Sat, May 8, 2010 at 2:25 PM, Pádraic Brady <[hidden email]> wrote:
|
|
Here is the issue, it would be nice to implement this during bug hunt days http://zendframework.com/issues/browse/ZF-9853.
Regards, Saša Stamenković On Sat, May 8, 2010 at 3:39 PM, Саша Стаменковић <[hidden email]> wrote: Yeah, I see http://delicious.com/help/api. |
| Powered by Nabble | Edit this page |
