Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-instagram-api-factory

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-instagram-api-factory

angularjs factory for instagram json rest api requests

  • 0.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

angular-instagram-api-factory is an angularjs module with a instagram api factory.

Author: Jonathan Hornung (JohnnyTheTank)

Usage

  1. Install via either bower, npm or downloaded files:
    1. bower install --save angular-instagram-api-factory
    2. npm install --save angular-instagram-api-factory
    3. download angular-instagram-api-factory.zip
  2. Add jtt_instagram to your application's module dependencies.
  3. Include dependencies in your HTML.
    1. When using bower:
    <script src="bower_components/angular-instagram-api-factory/src/angular-instagram-api-factory.min.js"></script>
    
    1. When using npm:
    <script src="node_modules/angular-instagram-api-factory/src/angular-instagram-api-factory.min.js"></script>
    
    1. when using downloaded files
    <script src="angular-instagram-api-factory.min.js"></script>
    
  4. Use the factory instagramFactory

factory methods

getMedia
instagramFactory.getMediaFromUserById({
    userId: "<USER_ID>",
    count: "<COUNT>", // (optional) valid values: 1-33 | default: 20
    min_id: "<MIN_ID>", // (optional)
    max_id: "<MAX_ID>", // (optional)
    min_timestamp: "<MIN_TIMESTAMP>", // (optional)
    max_timestamp: "<MAX_TIMESTAMP>", // (optional)
    access_token: "<YOUR_ACCESS_TOKEN>",
}).then(function (_data) {
    //on success
}).catch(function (_data) {
    //on error
});
instagramFactory.getMediaByTag({
    tag: "<TAG>",
    count: "<COUNT>", // (optional) valid values: 1-33 | default: 20
    min_tag_id: "<MIN_TAG_ID>", // (optional)
    max_tag_id: "<MAX_TAG_ID>", // (optional)
    min_timestamp: "<MIN_TIMESTAMP>", // (optional)
    max_timestamp: "<MAX_TIMESTAMP>", // (optional)
    access_token: "<YOUR_ACCESS_TOKEN>",
}).then(function (_data) {
    //on success
}).catch(function (_data) {
    //on error
});
instagramFactory.getMediaFromLocationById({
    locationId: "<LOCATION_ID>",
    count: "<COUNT>", // (optional) valid values: 1-33 | default: 20
    min_id: "<MIN_ID>", // (optional)
    max_id: "<MAX_ID>", // (optional)
    min_timestamp: "<MIN_TIMESTAMP>", // (optional)
    max_timestamp: "<MAX_TIMESTAMP>", // (optional)
    access_token: "<YOUR_ACCESS_TOKEN>",
}).then(function (_data) {
    //on success
}).catch(function (_data) {
    //on error
});
instagramFactory.getMediaByCoordinates({
    lat: "<LAT>",
    lng: "<LNG>",
    distance: "<DISTANCE>", // (optional) in meters, default: 1000
    count: "<COUNT>", // (optional) valid values: 1-33 | default: 20 (this parameter maybe don't work correct)
    min_timestamp: "<MIN_TIMESTAMP>", // (optional)
    max_timestamp: "<MAX_TIMESTAMP>", // (optional)
    access_token: "<YOUR_ACCESS_TOKEN>",
}).then(function (_data) {
    //on success
}).catch(function (_data) {
    //on error
});
getUser
instagramFactory.getUserById({
    userId: "<USER_ID>",
    access_token: "<YOUR_ACCESS_TOKEN>",
}).then(function (_data) {
    //on success
}).catch(function (_data) {
    //on error
});

Instagram JSONP API

License

MIT

Keywords

FAQs

Package last updated on 06 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc