Skip to content

Instantly share code, notes, and snippets.

View vivienschilis's full-sized avatar

Vivien Schilis vivienschilis

  • SchilisCorp
  • Paris, FR
View GitHub Profile
Sendgrid
REST API using json
»·Verison 3
Authentication
Token within headers - We already support it
»·Authorization: Bearer Your.API.Key-HERE
Rate limiting

Keybase proof

I hereby claim:

  • I am vivienschilis on github.
  • I am vivienschilis (https://keybase.io/vivienschilis) on keybase.
  • I have a public key ASDO1WLAEfEac-4i2Wsqdyr1np-vqTZDaV2n6mknH1lobAo

To claim this, I am signing this object:

@vivienschilis
vivienschilis / gist:50f6da54accd5fb398d3
Last active November 6, 2019 02:35
Archive of Geckoboard's Push API v1

Push API v1

Unlike Polling widgets, whereby data has to be exposed for Geckoboard to poll, the Push API allows data to be pushed directly to widgets instead.

The Push API uses JSON exclusively. XML is not supported.

We’re using WebSockets to update the widgets in real time. You will need a modern browser or Adobe Flash installed to make this work.

Please note that the size of the file that is pushed can not exceed 1 MB.

Details

package aws_test
import (
"fmt"
"github.com/mitchellh/goamz/aws"
"github.com/mitchellh/goamz/s3"
"net/http"
"net/http/httptest"
{
"points": {
"point": [
{
"city": {
"city_name" : "Lyon",
"country_code": "FR"
}
},
{
@vivienschilis
vivienschilis / cheat-list
Created November 18, 2014 10:42
Cheat list
### Run local file server
ruby -run -ehttpd . -p8000
# From http://opscode.github.io/bento/
# Centos
http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-7.0_chef-provisionerless.box