Login   Register  
PHP Classes
elePHPant
Icontem

OAuth API requires

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP OAuth API  >  All threads  >  OAuth API requires  >  (Un) Subscribe thread alerts  
Subject:OAuth API requires
Summary:where do I get http.php
Messages:6
Author:Jerry Waese
Date:2012-09-19 20:12:11
Update:2012-09-20 13:32:47
 

  1. OAuth API requires   Reply   Report abuse  
Picture of Jerry Waese
Jerry Waese
2012-09-19 20:12:11
<?php
/*
* test_oauth_client.php
* @(#) $Id: test_oauth_client.php,v 1.3 2012/09/18 07:43:46 mlemos Exp $
*/
require('http.php');
require('oauth_client.php');

require is not in the package, from where do you recommend I obtain?

  2. Re: OAuth API requires   Reply   Report abuse  
Picture of Jerry Waese
Jerry Waese
2012-09-19 20:27:35 - In reply to message 1 from Jerry Waese
I found one in httpclient-2011-11-22.zip

  3. Re: OAuth API requires   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2012-09-19 20:58:23 - In reply to message 2 from Jerry Waese
Yes, I forgot to add the HTTP client class dependency. I just added it now. Thanks for the notice.

http://www.phpclasses.org/package/3-PHP-HTTP-client-to-acces ...

  4. Re: OAuth API requires   Reply   Report abuse  
Picture of Jerry Waese
Jerry Waese
2012-09-19 22:26:34 - In reply to message 3 from Manuel Lemos
after a tiny bit of experimenting, I find I need to create a kind of web service for the authorizing helper to talk to (to be hard coded into the oauth_client.php
var $dialog_url = '';//I think this is what is required

- that means I need to read more stuff,

unless you have a typical sample that talks back to the OAuth and gives me a USERNAME and authorization token.

  5. Re: OAuth API requires   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2012-09-20 00:56:38 - In reply to message 4 from Jerry Waese
No, this is for accessing existing Web services that can be accessed via OAuth.

Usually you need to register your application in the OAuth server side to be able to access it, so you can fill the client_id and client_secret variables that the server generated for your application.

Take a look at the examples login_with_facebook.php, login_with_twitter.php and login_with_google.php . They contain the URLs of the pages where you need to create OAuth applications to access them.

  6. Re: OAuth API requires   Reply   Report abuse  
Picture of Jerry Waese
Jerry Waese
2012-09-20 13:32:47 - In reply to message 5 from Manuel Lemos
thank you very much - I will look at that later this week, it is a feature I want to add, but my client has not listed it yet.