What's new
Carbonite

Welcome to Carbonite! Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Trying to call data from a JSON based API to a database.

marcus.strydom.daedalus

Junior Member
Rating - 100%
10   0   0
Joined
Aug 9, 2018
Messages
295
Reaction score
30
Points
535
Age
20
Good morning all, wanted to know how I can possibly call data from a JSON based API (Amadeus) to a database so that the stock loaded onto the site can be called from the database
 

andchaosZA

Cannon Fodder
Rating - 100%
14   0   0
Joined
Mar 7, 2013
Messages
87
Reaction score
0
Points
1,015
You mean you're calling an API which returns JSON, and you want to store that in a database?
That sounds much better. OP it depends on what programming language you are using, and then what library is being used in that programming language to handle the http requests.

Sent from my SM-G975F using Tapatalk
 
Last edited:

iamgigglz

Has a Legendary Member
VIP Supporter
Rating - 100%
210   0   0
Joined
Aug 19, 2014
Messages
5,038
Reaction score
867
Points
3,565
Location
Parkhurst
I think Deserialisation is the key here. Really easy in C# - will give detail if that’s the language you’re using.
 

Psynosaur

Psynosaurus rex
VIP Supporter
Rating - 100%
40   0   0
Joined
May 10, 2010
Messages
420
Reaction score
44
Points
1,685
Age
33
Location
Durbanville
Yeah most api interfacing occurs with JSON.
Please provide the language and database type you're using for this purpose, so we may compile you an answer 😁
 

Top Donors

$239.00
$215.00
$210.00
$113.00
Top