PHP Classes

AOL

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement PHP ...  >  All threads  >  AOL  >  (Un) Subscribe thread alerts  
Subject:AOL
Summary:Authorization: BEARER ".$accessToken
Messages:11
Author:ash
Date:2015-01-13 23:16:00
 
  1 - 10   11 - 11  

  1. AOL   Reply   Report abuse  
Picture of ash ash - 2015-01-13 23:16:00
Hi Manuel,

Great script! I have used it for lots of services successfully e.g. Google, Yahoo! and Hotmail.

I am trying to get it to work with AOL mail contacts, here is an example of an endpoint I am trying to load is:
api.abweb.aol.com/ABWebApi/get/@me/ ...
(this should display all contacts in an account).

This is the server I included in: oauth_client_class.php
<?php
// AOL server
case 'Aol':
$this->oauth_version = '2.0';
$this->dialog_url = 'https://api.screenname.aol.com/auth/authorize?response_type=code&client_id={CLIENT_ID}&redirect_uri={REDIRECT_URI}&scope={SCOPE}';
$this->access_token_url = 'https://api.screenname.aol.com/auth/access_token?grant_type=authorization_code&client_id={CLIENT_ID}&client_secret={CLIENT_SECRET}&redirect_uri={REDIRECT_URI}';
break;
?>

The error I am being retuned is:
{"response":{"statusCode":400,"statusText":"Missing required parameters","data":{"redirectURL":"http://api.screenname.aol.com/auth/login"}}}

Please let me know and keep up the good work :)
Ashley

  2. Re: AOL   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-01-15 02:29:32 - In reply to message 1 from ash
I tried to sort an issue with AOL API in the past but the problem is that I could not reproduce the problem because I could not create an application to get the client ID and secret to perform the OAuth authorization process.

Do you know how to create an application for using the AOL API? How did you get your client ID and secret? If you can provide that information, I may try to reproduce the problem.

  3. Re: AOL   Reply   Report abuse  
Picture of ash ash - 2015-01-30 00:15:52 - In reply to message 2 from Manuel Lemos
Hi

There is not a public way of getting this. I can get you a client_id. What domain will you be using? e.g. https://host.example.com

note the https

  4. Re: AOL   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-01-31 02:59:59 - In reply to message 3 from ash
I usually try it from a fake local domain. Make it for instance linux.manuellemos.net .

  5. Re: AOL   Reply   Report abuse  
Picture of ash ash - 2015-02-27 13:24:45 - In reply to message 4 from Manuel Lemos
Hi Manuel

I have requested this for you. Please remember that this will only work over https.

I will be in touch again soon

  6. Re: AOL   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-02-28 22:22:15 - In reply to message 5 from ash
OK, but I still need the application client_id and client_secret to test it.

  7. Re: AOL   Reply   Report abuse  
Picture of ash ash - 2015-03-03 13:35:57 - In reply to message 6 from Manuel Lemos
AOL

linux.manuellemos.net


client_id: as1mYCpIKhGyMATD
secret: GcGQ6uVnAfJsb7VPCTqS4uQpCW5xbXQZ

I am wanting to be using this with AOL Mail contacts addressbook:
api.abweb.aol.com/ABWebApi/get/@me/ ...

The auth headers work like this:
$authorizationHeader = array("Content-Type: application/x-www-form-urlencoded","Authorization: BEARER ".$accessToken);

  8. Re: AOL   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-03-07 23:10:03 - In reply to message 7 from ash
Sorry for the delay. I just made time to looking into this.

I just uploaded a new version that comes with built-in AOL support. It is also able to treat application/javascript MIME types as JSON.

Just let me know if you have other issues.

  9. Re: AOL   Reply   Report abuse  
Picture of ash ash - 2015-03-12 19:01:27 - In reply to message 8 from Manuel Lemos
It works perfectly, thanks for for finding a fix for this!

  10. Re: AOL   Reply   Report abuse  
Picture of REVELLO GIANLUIGI REVELLO GIANLUIGI - 2015-03-24 18:15:11 - In reply to message 3 from ash
Hi,

How you do to have the application?
Which is the way to have it?

Thanks
Gianluigi

 
  1 - 10   11 - 11