Make a request to get started.
cURL
curl -X POST -d "fizz=buzz" {{ getBinUrl(bin) }}
Python (with Requests)
import requests, time
r = requests.post('{{ getBinUrl(bin) }}', data={"ts":time.time()})
print r.status_code
print r.content
Go
package main
import (
"net/http"
"net/url"
"fmt"
"io/ioutil"
)
func main(){
if resp, err := http.PostForm("{{ getBinUrl(bin) }}",
url.Values{"key": {"Value"}, "id": {"123"}}); err == nil {
fmt.Println(resp.StatusCode)
if body, err := ioutil.ReadAll(resp.Body); err == nil {
fmt.Println(string(body))
}
}
}