Rescue Plastic Bottles
Rescue Plastic Bottles
POST
https://app.thegoodapi.com/rescue/plastic_bottles
Yes, rescuing plastic bottles is that easy!
Headers
Name
Type
Description
Authorization*
string
<API Key>
Request Body (JSON)
Name
Type
Description
count
integer
The number of plastic bottles you'd like to register to rescue
Example Curl:
curl --request POST \
--url https://app.thegoodapi.com/rescue/plastic_bottles \
--header 'Authorization: {API_KEY}' \
--header 'Content-Type: application/json' \
--data '{
"count": 1
}'
Response
{
"total_rescued_bottles": 6,
"total_rescued_bottles_month": 6,
"bottle_details": [
{
"count": 1,
"fractional_count": 0,
"created_at": "2024-05-23T02:45:50.708077-04:00"
}
]
}
Get Total Rescued Plastic Bottles Details
GET
https://app.thegoodapi.com/rescue/plastic_bottles
Headers
Name
Type
Description
Authorization*
String
<API Key>
Example Curl:
curl --request GET \
--url http://app.thegoodapi.com/rescue/plastic_bottles \
--header 'Authorization: {API_KEY}' \
--header 'Content-Type: application/json'
Response
{
"total_rescued_bottles": 6,
"total_rescued_bottles_month": 6,
"bottle_details": [
{
"count": 1,
"created_at": "2024-05-23T06:45:50.708077Z"
},
{
"count": 1,
"created_at": "2024-02-23T06:44:40.861792Z"
},
{
"count": 1,
"created_at": "2024-02-23T06:43:51.981982Z"
},
{
"count": 3,
"created_at": "2024-01-01T06:42:47.443824Z"
}
]
}
Last updated
Was this helpful?