Skip to content
Browse files

searching for locations implemented

  • Loading branch information...
1 parent a544dd7 commit 1779c529cc31195adcf210703bce48fae86d0483 @Swizec committed Mar 8, 2011
Showing with 7 additions and 1 deletion.
  1. +4 −0 index.js
  2. +3 −1 tests/locations.js
View
4 index.js
@@ -110,6 +110,10 @@ InstagramLocationsClient.prototype.media = function (id, params, callback) {
callback);
}
+InstagramLocationsClient.prototype.search = function (params, callback) {
+ this.parent.fetch('/v1/locations/search', params, callback);
+}
+
exports.createClient = function (client_id, client_secret) {
View
4 tests/locations.js
@@ -40,7 +40,9 @@ exports.testLocationsMedia = function (test) {
}
exports.testLocationsSearch = function (test) {
- var datas = [];
+ var datas = [{lat: 48.858844, lng: 2.294351},
+ {lat: 48.858844, lng: 2.294351, distance: 3000},
+ {foursquare_id: 44379, distance: 1000}];
test.expect(datas.length*2);

0 comments on commit 1779c52

Please sign in to comment.
Something went wrong with that request. Please try again.