Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

how to use account login on VPS. When I use it locally it works fine. Still this code I run on vps but it doesn't work. reuqest 429. #302

Open
manhict opened this issue Aug 9, 2023 · 0 comments

Comments

@manhict
Copy link

manhict commented Aug 9, 2023

how to use account login on VPS. When I use it locally it works fine.
Still this code I run on vps but it doesn't work. reuqest 429.

import pkgThreads from 'threads-api';
const { ThreadsAPI } = pkgThreads;
(async() => {
try {
const threadsAPI = new ThreadsAPI({
username: '', // Your username
password: '', // Your password
});
const username = '_junhoyeo';
const userID = await threadsAPI.getUserIDfromUsername(username);
if (!userID) {
return;
}
console.log(userID);
} catch (error) {
console.log(error.stack);
}
})();

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants