Comments (9)
To configure WAMP:
1.- Download the CA Certificate from this link: https://curl.haxx.se/ca/cacert.pem
2.- Open php.ini
3.- Look for curl.cainfo and paste the absolute path where you have download the Certificate.
/* Example: curl.cainfo = "C:\wamp\htdocs\cert\cacert.pem" */
4.- Restart WAMP.
5.- It works!
from fonoapi.
Thanks you, I'll test ASAP
from fonoapi.
Great. its a common server config issue. but disabling verifier makes all your requests insecure that is not recommended.
There is another approach using .pem file
http://stackoverflow.com/questions/28858351/php-ssl-certificate-error-unable-to-get-local-issuer-certificate
you could give it a try.
from fonoapi.
Thanks you!
from fonoapi.
Did you try with the demo files ? it seems to be working. can you attach the code please
from fonoapi.
Yes I did, I don't know why its returning false, I just unzip the demo, put it the generated key and tried it. Maybe I'm doing something wrong.. I tried to put other random url to know if cURL was working, and it worked.
from fonoapi.
I just made a commit. i have added debugging for curl.
you can now use
fonoApi::init($apiKey) -- initiate
fonoApi::debug($apiKey) -- debug
check the demo file and let me know what was the issue. thanks
from fonoapi.
This is from debugger:
"ERROR : Curl Failed | innerException : SSL certificate problem: unable to get local issuer certificate"
from fonoapi.
I solved: http://unitstep.net/blog/2009/05/05/using-curl-in-php-to-access-https-ssltls-protected-sites/
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
And it works
from fonoapi.
Related Issues (20)
- Database maintenance HOT 2
- Invalid or Blocked Token. Generate a Token at fonoapi.freshpixl.com HOT 1
- Samsung s7 data HOT 1
- API Not responding and Account suspended HOT 1
- Xiaomi Mi A2 Lite
- Created a Dart client library HOT 2
- couldn't install via composer HOT 1
- mobile image not found?
- Remove `device` mandatory from the api query HOT 1
- Device Name HOT 1
- Get price of the phones HOT 2
- Is this project alive? HOT 9
- Is a dump of the current db available? HOT 1
- The api is timing out HOT 2
- API calls timing out HOT 6
- When we can expect the database to be back? HOT 15
- Hi,we have an api which is similar to fonoapi HOT 5
- API still non-responsive HOT 1
- [New] Official TechSpecs API
- [New] Free REST API to retrieve device information (WURFL)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fonoapi.