Permalink
Browse files

location by id

  • Loading branch information...
1 parent c5ceffd commit 546a8ba8e53d9e7ddbe80dcabac13e24c82c515f @Swizec committed Mar 8, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 index.js
View
@@ -10,6 +10,7 @@ function InstagramClient(client_id, client_secret) {
this.media = new InstagramMediaClient(this);
this.tags = new InstagramTagsClient(this);
+ this.locations = new InstagramLocationsClient(this);
}
InstagramClient.prototype.fetch = function (path, params, callback) {
@@ -90,6 +91,14 @@ InstagramTagsClient.prototype.tag = function (tag, callback) {
this.parent.fetch('/v1/tags/'+tag, callback);
}
+function InstagramLocationsClient (parent) {
+ this.parent = parent;
+}
+
+InstagramLocationsClient.prototype.id = function (id, callback) {
+ this.parent.fetch('/v1/locations/'+id, callback);
+}
+
exports.createClient = function (client_id, client_secret) {
var instagram_client = new InstagramClient(client_id, client_secret);

0 comments on commit 546a8ba

Please sign in to comment.