Write Simple Script to Post Json File Data to an API
Budget: $30 – $250 USD
I have a pre-made Json file that I need script to curl through and post to an API.
API is basic auth where the key is used as the username.
Query:
{
"status": "active",
"customertype": "medical",
"lastName": "Tester",
"firstName": "Tester",
"dateOfBirth": "1981-03-23",
"phone": 5555555555,
"address1": "123 Test St",
"city": "Testville",
"state": "NY",
"postalcode": "55555",
"mmjidNumber": "001122334455",
"mmjidExpirationDate": "2022-04-23",
"driversLicenseHash": "1122334455"
}
API is basic auth where the key is used as the username.
Query:
{
"status": "active",
"customertype": "medical",
"lastName": "Tester",
"firstName": "Tester",
"dateOfBirth": "1981-03-23",
"phone": 5555555555,
"address1": "123 Test St",
"city": "Testville",
"state": "NY",
"postalcode": "55555",
"mmjidNumber": "001122334455",
"mmjidExpirationDate": "2022-04-23",
"driversLicenseHash": "1122334455"
}