djgenesis13
New Member
- Joined
- Apr 24, 2014
- Messages
- 22
Hello guys,
I have a json api which uses a token in the format of https://someapi.com/pubapi.php?token=XXXXXXXXXX&mode=list which returns a json result.
I get the token from https://someapi.com/pubapi.php?get_token=get_token in the form of {"token":"XXXXXXXXXX"}
Using this online tool https://json-csv.com/ I am able to translate the json results insto csv and then import the csv to an excel file but it takes a lot of time to do this repeatedly manually step by step as every 15 minutes I have to get a new token.
I want to create a vba which
1)Calls https://someapi.com/pubapi.php?get_token=get_token to get the token
2)Uses the token in the json request https://someapi.com/pubapi.php?token=XXXXXXXXXX&mode=list
3)Get the results and Insert them in a specific excel sheet of my workbook (ex. "jsonresults")
I have a json api which uses a token in the format of https://someapi.com/pubapi.php?token=XXXXXXXXXX&mode=list which returns a json result.
I get the token from https://someapi.com/pubapi.php?get_token=get_token in the form of {"token":"XXXXXXXXXX"}
Using this online tool https://json-csv.com/ I am able to translate the json results insto csv and then import the csv to an excel file but it takes a lot of time to do this repeatedly manually step by step as every 15 minutes I have to get a new token.
I want to create a vba which
1)Calls https://someapi.com/pubapi.php?get_token=get_token to get the token
2)Uses the token in the json request https://someapi.com/pubapi.php?token=XXXXXXXXXX&mode=list
3)Get the results and Insert them in a specific excel sheet of my workbook (ex. "jsonresults")