QR code generator with multiple datatypes .

FREE
By Ajith Joseph | Updated 14 days ago | Tools
Popularity

8.9 / 10

Latency

578ms

Service Level

83%

Health Check

N/A

Back to All Discussions

Javascript API does not work. Need API Provider help.

Rapid account: Charu 2016
charu_2016
8 years ago

My api key is used to get json data. However, it is not working. I am not sure about the url value. Could you please help me?

Hi. I need API Provider help. I sent you code example for QR Code generate. I’m using .net framework but I want to do it by jquery ajax. I have already submitted my code sample earlier. Could you guys help me please? I will be a paid user after getting this fixed. Before paid user, I need to check whether everything is working or not. Could you help me please?

<p>function doIt() {
debugger;
var output = $.ajax({
url: ‘https://codzz-qr-cods.p.mashape.com/api’, // The URL to the API. You can get this by clicking on “Show CURL example” from an API profile
type: ‘GET’, // The HTTP Method, can be GET POST PUT DELETE etc
data: {
“TYPE”: “text”,
“DATA”: {
“TEXT”: " kibria"
}
}, // Additional parameters here
setting: {“LAYOUT”:{“COLORBG”:“ffffff”,“GRADIENT<em>TYPE”:“NO</em>GR”,“COLOR1”:“000000”},“EYES”:{“EYE<em>TYPE”:“Simple”},“E”:“M”,“BODY</em>TYPE”:0},
dataType: ‘json’,
success: function (data) {
debugger;
//
//Change data.source to data.something , where something is whichever part of the object you want returned.
//To see the whole object you can output it to your browser console using:
//console.log(data);
document.getElementById(“output”).innerHTML = data.source;
},
error: function (err) { alert(err); },
beforeSend: function (xhr) {
xhr.setRequestHeader(“X-Mashape-Authorization”, “kUcbdBUQ9qmshmdah8b8lPNcEeKZp1HFCETjsn2ETzw2SCvo0w”);
}
});}</p>

<pre><code>
</code></pre>

Join in the discussion - add comment below:

Login / Signup to post new comments