Created
November 19, 2014 20:02
-
-
Save lavoiesl/26ef0bd6725f3b6acf78 to your computer and use it in GitHub Desktop.
Checking latest version of Composer using Python and GitHub API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import urllib2 | |
import json | |
request = urllib2.urlopen('https://api.github.com/repos/composer/composer/git/refs/heads/master') | |
obj = json.load(request) | |
print obj["object"]["sha"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment