Post Updates to Buffer Using the Buffer API

Post updates to buffer using this library – https://github.com/thewebguy/bufferapp-php details documentation about the api is available from https://buffer.com/developers/api

file_get_contents with gists

Doing a regular file_get_contents with gist API will return forbidden to allow the connection the user agent should be passed with the request.

Get City from IP Address Using ipgpnet

Using an API from http://www.ipgp.net/ this snippet demonstrates getting a city from an IP address pass the IP address in a var called $ip and the API key in a var called $apikey. If the session has not been created then a lookup is done and the city is added to a session.