PHP Classes

PHP oAuth API

Recommend this page to a friend!

      PHP OAuth Library  >  All threads  >  PHP oAuth API  >  (Un) Subscribe thread alerts  
Subject:PHP oAuth API
Summary:Thanks, it's a great class!
Messages:31
Author:E.F. de moor
Date:2013-10-24 21:45:24
Update:2013-12-20 20:01:58
 
  1 - 10   11 - 20   21 - 30   31 - 31  

  1. PHP oAuth API   Reply   Report abuse  
Picture of E.F. de moor E.F. de moor - 2013-10-24 21:45:24
Dear Manuel,

First of all I want to thank you for the oath_client_class, it is very useful.
Also I like the way the storage calls can be overridden, very useful.

I had a small problem with the SendApiRequest method, especially when using method a of "POST". The authorization data was not sent to the (dropbox) host.

Fortunately it was easy to solve:

Line 1303 reads:
$arguments['PostValues'] = $parameters;

If I replaced this by:
$arguments['PostValues'] = $post_values;

and all worked fine.

Hopefully this is useful for you or others.

Regards and thanks again for all the work!

Ernst de Moor
The Netherlands.

  2. Re: PHP oAuth API   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-10-24 22:06:01 - In reply to message 1 from E.F. de moor
Can you send me an example call to CallAPI so I can reproduce that problem?

  3. Re: PHP oAuth API   Reply   Report abuse  
Picture of E.F. de moor E.F. de moor - 2013-10-30 13:02:07 - In reply to message 2 from Manuel Lemos
Dear Manuel,

Thanks for your answer, and sorry for the delay. I've been busy these days.

An example of the API call that works with the modified code:
$this is an object of a derived class of oauth_client_class


----

$parms['cursor'] = $cursor; // This is a previous received reference from DropBox.
$success = $this->CallAPI(
"https://api.dropbox.com/1/delta",
'POST',
$parms,
array('FailOnAccessError'=>true),
$delta
);

-----


Thanks again,

Ernst de Moor
The Netherlands.

  4. Re: PHP oAuth API   Reply   Report abuse  
Picture of Roya Wisdom Roya Wisdom - 2013-11-05 06:52:48 - In reply to message 2 from Manuel Lemos
Hi Manuel,

I am very new to OAuth php. I am looking to fetch Linkedin profiles information for research purpose and hoping that your classes would help me to get access to the data and overcome the limitation.

I would like to discuss the project with you, please reply

Thanks

  5. Re: PHP oAuth API   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-11-05 08:41:56 - In reply to message 4 from Roya Wisdom
Just try the login_with_linkedin.php script. It does already what you need.

  6. Re: PHP oAuth API   Reply   Report abuse  
Picture of pradeep pradeep - 2013-11-11 12:59:40 - In reply to message 5 from Manuel Lemos
storing the info to database is not working.
i created the table named as mentioned in files.
Please suggest me how to do this.

  7. Re: PHP oAuth API   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-11-11 17:10:55 - In reply to message 6 from pradeep
You need to follow the instructions in this article, and maybe just change the configuration to use whatever API you want if it is not Google.

phpclasses.org/blog/package/7700/po ...

  8. Re: PHP oAuth API   Reply   Report abuse  
Picture of pradeep pradeep - 2013-11-13 17:52:59 - In reply to message 7 from Manuel Lemos
Fatal error: Class 'database_oauth_client_class' not found in /domain url/mysqli_oauth_client.php on line 9

Am recieving this error!

  9. Re: PHP oAuth API   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-11-13 19:19:30 - In reply to message 8 from pradeep
You need to include the file database_oauth_client.php .

  10. Re: PHP oAuth API   Reply   Report abuse  
Picture of pradeep pradeep - 2013-11-14 18:31:25 - In reply to message 9 from Manuel Lemos
Fatal error: Class 'oauth_client_class' not found in myDomain/database_oauth_client.php on line 25

I included the

require('database_oauth_client.php');
require('http.php');
require('oauth_client.php');

in the code mysqli_oauth_client.php

still am getting error

 
  1 - 10   11 - 20   21 - 30   31 - 31