I have to pull data from 2 different API's for some player info.
API #1 list the data in this format
<PlayerId>35</PlayerId>
<Name>Joe Flacco</Name>
<Salary>6000</Salary>
API #2 for the same player , list the info as follows
<player id="9064" name="Flacco, Joe"/>
neither API has all the info i need , so i have to combine them to get all the data needed.
I am using API #2 for everything , aside of player Salary , for which i need get from API #1. So i think i need to assign PlayerID 35 to player id 9064 . I have about 1000 players to reassign the id for. What is best solution for doing this ? Example ? I am going to create a new json file to read this info from
via MShack
No comments:
Post a Comment