VIN Decoding API |
VIN Decoding API |
Chris619 |
Dec 2 2016, 05:24 PM
Post
#1
|
Newbie Group: Members Posts: 10 Joined: 2-December 16 Member No.: 24,951 |
I'm trying to create an internal VIN Decoding website that pulls data from an external site. I'm a newbee so please dont tear me apart with negative comments I have the link to the API, i have the API key but the results i get after entering VIN is in JSON format.
Link Example: https://api.mywebsite.com/api/vehicle/vins/...p;api_key=mykey First question is, how do I trigger the submit button to request decode of the vin entered in the text box, into the link example shown above. The only field that will change on the link will be the VIN which in this case is represented by 4T1BK1EB6DU056165. CODE <input id="id1" type="vin" max="17"> <button onclick="myFunction()">Submit</button> And once I get the response in JSON, how do I display the code with styling in html? I tried the following code but no results CODE function setup() { loadJSON("https://api.mywebsite.com/api/vehicle/vins/4T1BK1EB6DU056165?&fmt=json&api_key=mykey", gotData, 'jsonp); Thanks any help you can give... This post has been edited by Chris619: Dec 2 2016, 05:27 PM |
CharlesEF |
Dec 2 2016, 05:44 PM
Post
#2
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
The link you posted doesn't work, I get a 'Server not found' message.
|
pandy |
Dec 2 2016, 05:54 PM
Post
#3
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
It's a dummy link (check the domain name). The OP just wants to show the format.
|
Lo-Fi Version | Time is now: 25th April 2024 - 08:27 PM |