Hi How do I properly make HTTP post request in android with this json based API.
curl -H "Content-type: application/json" -X POST \
-d '{
"service_key": "e93facc04764012d7bfb002500d5d1a6",
"incident_key": "srv01/HTTP",
"event_type": "trigger",
"description": "FAILURE for production/HTTP on machine srv01.acme.com"
}
}' \
"https://events.pagerduty.com/generic/2010-04-15/create_event.json"
I have this code but it is giving me status error of 400 - https://gist.github.com/26af7af09b509c0e8c2a#comments