new InstagramService($q, $log, $http)
Instagram layer
Parameters:
Name | Type | Description |
---|---|---|
$q |
$q | See https://code.angularjs.org/1.2.26/docs/api/ng/service/$q |
$log |
$log | See https://code.angularjs.org/1.2.26/docs/api/ng/service/$log |
$http |
$http | See https://code.angularjs.org/1.2.26/docs/api/ng/service/$http |
- Source:
Methods
getInitialSelfFlow(userId) → {obj}
Gets recent flow for user by id
Parameters:
Name | Type | Description |
---|---|---|
userId |
String | The id of the user |
- Source:
Returns:
Recent flow of posts by user
- Type
- obj
getMediaByTag(tag) → {obj}
Get media (images and videos) by given hashtag
Parameters:
Name | Type | Description |
---|---|---|
tag |
String | The hashtag |
- Source:
Returns:
Response object containing posts with the given hashtag
- Type
- obj
getMediaByTagWithMaxId(maxId, tag) → {obj}
Get media (images and videos) by given hashtag starting with specified index
Parameters:
Name | Type | Description |
---|---|---|
maxId |
String | Starting index |
tag |
String | The hashtag |
- Source:
Returns:
Response object containing posts with the given hashtag with given starting index
- Type
- obj
getSelfFlowWithMaxId(userId, maxId) → {obj}
Gets flow for user by id starting with given maxId as index
Parameters:
Name | Type | Description |
---|---|---|
userId |
String | The id of the user |
maxId |
String | Max id |
- Source:
Returns:
Recent flow of posts by user starting with specified index
- Type
- obj
getUserInformation(userId) → {obj}
Get information about an Instagram user
Parameters:
Name | Type | Description |
---|---|---|
userId |
String | The id of the user |
- Source:
Returns:
Response object containing user information
- Type
- obj
searchForUser(query) → {Array}
Search for instagram user
Parameters:
Name | Type | Description |
---|---|---|
query |
String | Searchword |
- Source:
Returns:
List of users matching the query
- Type
- Array