Skip to content

Commit

Permalink
Merge pull request #6 from jehna/add-custom-endpoints
Browse files Browse the repository at this point in the history
Add custom Twitter endpoints
  • Loading branch information
saimon24 committed Sep 2, 2015
2 parents 458180c + 0386d1b commit 9715d45
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ getUserTimeline(object options) // GET statuses/user_timeline
searchTweets(string keyword, object options); // GET search/tweets
postStatusUpdate(string statusText, object options); // POST statuses/update
getUserDetails(string user_id, object options); // GET users/show
getRequest(string full_twitter_api_url, object options); // GET custom url
postRequest(string full_twitter_api_url, object options); // POST custom url
```


Expand Down
4 changes: 3 additions & 1 deletion dist/ng-twitter-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ angular.module('twitter.functions', [])
},
getUserDetails: function(user_id, parameters) {
return getRequest(USER_DETAILS_URL, {user_id: user_id}, parameters);
}
},
getRequest: getRequest,
postRequest: postRequest
};
}]);

Expand Down
4 changes: 2 additions & 2 deletions dist/ng-twitter-api.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/twitter-functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ angular.module('twitter.functions', [])
},
getUserDetails: function(user_id, parameters) {
return getRequest(USER_DETAILS_URL, {user_id: user_id}, parameters);
}
},
getRequest: getRequest,
postRequest: postRequest
};
}]);

0 comments on commit 9715d45

Please sign in to comment.