PHP Classes

File missing

Recommend this page to a friend!

      PHP OAuth Library  >  All threads  >  File missing  >  (Un) Subscribe thread alerts  
Subject:File missing
Summary:callappioauth_configuration.json is missing
Messages:9
Author:Raas
Date:2019-07-18 15:10:46
 

  1. File missing   Reply   Report abuse  
Picture of Raas Raas - 2019-07-18 15:10:46
This is referred to in the oauth_client.php

Is this package even tested or maintained?

This is the 2nd issue with this package :-(

  2. Re: File missing   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2019-07-18 23:51:13 - In reply to message 1 from Raas
Hello Raas,

Yes this package is being developed and maintained depending on the needs or desires of its users.

The file that is needed is oauth_configuration.json and is included within the package so it provides ready to use configuration to many OAuth servers.

Does this information solve your problem?

  3. Re: File missing   Reply   Report abuse  
Picture of Vin ku Vin ku - 2020-02-09 00:03:56 - In reply to message 2 from Manuel Lemos
Hi Manuel,

I am also getting the same error

the OAuth server configuration file oauth_configuration.json does not exist

json file exists in the same folder as http.php and oauth.client.php

Why does it not recognize it ?

Please help.

Thanks
Vin

  4. Re: File missing   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2020-02-09 02:29:47 - In reply to message 3 from Vin ku
Hello Vin, the default path of the JSON configuration file is oauth_configuration.json. Since it does not specify the directory of the file, its path is relative to the path of the current request script path.

So, if you put the oauth_configuration.json in a different directory than the directory of the current request PHP script path, you need to change the class configuration_file variable to be set to the actual relative or absolute path of your oauth_configuration.json .

For instance, if your current request is handled by index.php and the file oauth_configuration.json is in oauth-api / sub-directory, you need to set the variable configuration_file to oauth-api/oauth_configuration.json .

  5. Re: File missing   Reply   Report abuse  
Picture of Vin ku Vin ku - 2020-02-09 16:08:51 - In reply to message 4 from Manuel Lemos
Thanks Manuel, I have change the exact path and it can determine the file path.

But I am getting another error, while using linkedin2

Linkedin2 error:it was not possible to access the API call: it was returned an unexpected response status 410 Response: { "errorCode": 0, "message": "This resource is no longer available under v1 APIs", "requestId": "2IAJ843S0C", "status": 410, "timestamp": 1581264221752 }

After doing some google search, I found that linkedin v1 has been deprecated, does this package works with latest v2 version ?

I have tried below two during API call, but getting some error
//'https://api.linkedin.com/v2/me?projection=(id,firstName,lastName,profilePicture(displayImage~:playableStreams))',
error
Linkedin2 error:it was not possible to access the API call: it was returned an unexpected response status 403 Response: {"serviceErrorCode":100,"message":"Unpermitted fields present in PARAMETER: Data Processing Exception while processing fields [/format]","status":403}

while using below api
//'https://api.linkedin.com/v2/emailAddress?q=members&projection=(elements*(handle~))',

getting below error
Linkedin2 error:it was not possible to access the API call: it was returned an unexpected response status 403 Response: {"serviceErrorCode":100,"message":"Unpermitted fields present in PARAMETER: Data Processing Exception while processing fields [/format]","status":403}

Kindly help.

Thanks
Vin

  6. Re: File missing   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2020-02-10 05:09:17 - In reply to message 5 from Vin ku
The class works with LinkedIn2 that uses OAuth 2.0 .

The error message that you presented shows the error "Unpermitted fields present". This seems to mean that your API call parameters need to be fixed.

Can you please take a look at LinkedIn API documentation, as well to this forum question, so you can see if you can figure it out, and let me know what you find out?

stackoverflow.com/questions/5456391 ...

  7. Re: File missing   Reply   Report abuse  
Picture of Vin ku Vin ku - 2020-02-15 02:42:14 - In reply to message 6 from Manuel Lemos
Thanks, after going through MS docs, I found out that we have to make two calls in V2,

one for profile data, this one worked for me
'https://api.linkedin.com/v2/me?projection=(id,firstName,lastName,profilePicture(displayImage~:playableStreams))',

Below is for email address
'https://api.linkedin.com/v2/emailAddress?q=members&projection=(elements*(handle~))',

I am able to authenticate user with Linkedin2 V2 using above.

Thanks
Vin

  8. Re: File missing   Reply   Report abuse  
Picture of Vin ku Vin ku - 2020-02-15 02:42:15 - In reply to message 6 from Manuel Lemos
Thanks, after going through MS docs, I found out that we have to make two calls in V2,

one for profile data, this one worked for me
'https://api.linkedin.com/v2/me?projection=(id,firstName,lastName,profilePicture(displayImage~:playableStreams))',

Below is for email address
'https://api.linkedin.com/v2/emailAddress?q=members&projection=(elements*(handle~))',

I am able to authenticate user with Linkedin2 V2 using above.

Thanks
Vin

  9. Re: File missing   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2020-02-15 22:40:34 - In reply to message 8 from Vin ku
Great. Thanks for the update. Good to know that it works for you.

 
For more information send a message to info at phpclasses dot org.