Skip to content

Instantly share code, notes, and snippets.

@jonathandavidlewis
Last active November 8, 2017 17:24
Show Gist options
  • Save jonathandavidlewis/654b278a2b7eeb332a088f453feb5e65 to your computer and use it in GitHub Desktop.
Save jonathandavidlewis/654b278a2b7eeb332a088f453feb5e65 to your computer and use it in GitHub Desktop.
How to figure out APIs

How to Figure out APIs

Start Interacting with it immediately

Some APIS to try:

https://spoonacular.com/food-api Google Maps Google People Weatehr

{
  "connections": [...],
  "totalPeople": 1234,
  "totalItems": 1234
}
"connections": [
  {
    "resourceName": "people/c1188965275809937",
    "etag": "%EgMBAgkaDQECAwQFBgcICQoLDA0iDGlhcnMwMTNlTGtjPQ==",
    "names": [],
    "emailAddresses": []
  }
]
"names": [
  {
    "metadata": {
        "primary": true,
        "source": {
            "type": "CONTACT",
            "id": "4395b8cea3891"
        }
    },
    "displayName": "Azul Occu",
    "familyName": "Occu",
    "givenName": "Azul",
    "displayNameLastFirst": "Occu, Azul"
  }
]
"metadata": {
        "primary": true,
        "source": {
            "type": "CONTACT",
            "id": "4395b8cea3891"
        }
    }
"source": {
            "type": "CONTACT",
            "id": "4395b8cea3891"
        }
"emailAddresses": [
                {
                    "metadata": {},
                    "value": "nglaze14@gmail",
                    "type": "other",
                    "formattedType": "Other"
                }
            ]

Response

{
    "connections": [
        {
            "resourceName": "people/c1939581420525552910",
            "etag": "%EgMBAgkaDQECAwQFBgcICQoLDA0iDFVTcEtzam9xRUdBPQ==",
            "names": [
                {
                    "metadata": {
                        "primary": true,
                        "source": {
                            "type": "CONTACT",
                            "id": "1aeac7068f5f850e"
                        }
                    },
                    "displayName": "nglaze14@gmail",
                    "givenName": "nglaze14@gmail",
                    "displayNameLastFirst": "nglaze14@gmail"
                }
            ],
            "emailAddresses": [
                {
                    "metadata": {
                        "primary": true,
                        "source": {
                            "type": "CONTACT",
                            "id": "1aeac7068f5f850e"
                        }
                    },
                    "value": "nglaze14@gmail",
                    "type": "other",
                    "formattedType": "Other"
                }
            ]
        },


Simplified

{
    "connections": [
        {
            "names": [
                {
                    "displayName": "nglaze14@gmail"
                }
            ],
            "emailAddresses": [
                {
                    "value": "nglaze14@gmail"
                }
            ]
        }
      ]
    }


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment