How to use the instagram-private-api.V1.Account function in instagram-private-api

To help you get started, we’ve selected a few instagram-private-api examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github igdmapps / igdm / main / instagram.js View on Github external
session.getAccountId().then((id) => {
      Client.Account.getById(session, id).then(resolve).catch(reject);
    });
  });
github terkelg / ramme / src / common / api / user.js View on Github external
const get = async () => {
  if (user) {
    try {
      let session = await loadSession(user)
      let account = await session.getAccount()
      let profile = await api.Account.showProfile(session)
      return Object.assign({}, account._params, profile)
    } catch (e) {
      return false
    }
  }
}
github igdmapps / igstories / main / instagram.js View on Github external
return new Promise((resolve, reject) => {
    Client.Account.search(session, search)
      .then((users) => {
        const userIds = users.map((user) => user.id);
        new Client.Feed.UserStory(session, userIds.splice(0, 20)).get()
          .then(resolve).catch(reject);
      })
      .catch(reject)
  })
}
github igdmapps / igstories / main / instagram.js View on Github external
session.getAccountId().then((id) => {
      Client.Account.getById(session, id).then(resolve).catch(reject);
    });
  });
github igdmapps / igdm / main / instagram.js View on Github external
return new Promise((resolve, reject) => {
    Client.Account.search(session, search).then(resolve).catch(reject)
  })
}