I use the CURL request (want to connect with quickblox) in my ionic code, but when I call the request I get the error like XMLHttpRequest cannot load http://api.quickblox.com/users.json. Response for preflight is invalid (redirect).
So, anybody can help me for requesting the curl command from the ionic.
curl is a command line tool for making requests.
How does this combine with Ionic?
I have the API like this
curl -X GET
-H “QuickBlox-REST-API-Version: 0.1.0”
-H “QB-Token: f1435baba523599662f3c5f125316073d112a5af”
or you can go through this link “https://quickblox.com/developers/Users#Retrieve_API_Users_for_current_account”, I want to use this apis in my ionic app.
Ok, so you have to make a GET request for
http://api.quickblox.com/users.json with these two headers. The “curl” is just a way to express what the request should look like.
can you help me to request for this api using ionic…??
Are you using Ionic 1 with AngularJS or Ionic 2 or 3 with Angular?
If 1, then @rapropos answer is correct (and you selected the correct category for your post).