Comments (3)
You can use this it will automatically reads the installationId
const truecallerjs = require('truecallerjs');
const path = require("path");
const fs = require("fs");
const file = path.join(process.env.HOME || process.env.HOMEPATH, ".config", "truecallerjs", "authkey.json")
function read_file(file) {
try {
const data = fs.readFileSync(file, "utf8");
return JSON.parse(data);
} catch (err) {
console.error(err)
}
}
let jsonAuthKey = read_file(file);
var searchData = {
number: "9912345678",
countryCode: "IN",
installationId: jsonAuthKey.installationId,
output: "JSON"
}
var sn = truecallerjs.searchNumber(searchData);
sn.then(function (response) {
console.log(response)
});
from truecallerjs.
Sir you didn't understand my concern
I say that how i create installation id
from truecallerjs.
I will add that in next version of truecallerjs
from truecallerjs.
Related Issues (20)
- Getting backup found after entering otp. HOT 2
- i'm unable to generate installation ID with browser request HOT 2
- Unable to login, with both file and otp HOT 6
- Showing Error HOT 3
- Cannot use bulk search, "errorResp": "Request failed with status code 400" HOT 1
- After 50 requests it is show error too many requests HOT 1
- Can you tell what is the exact limit per Installation ID HOT 1
- not generating otp HOT 3
- 401 error HOT 1
- Issue with login HOT 1
- ERROR : Request failed with status code 451 HOT 2
- Client must be upgraded HOT 2
- cant login to my truecaller account & i cant find my installation id in the json file HOT 4
- Error: Cannot find module '/root/****/node_modules/truecallerjs/dist/axios.cjs' HOT 2
- getting error while importing
- Showing axios error not getting any response in now a days HOT 1
- "AxiosError" - "Request failed with status code 429" HOT 1
- No OTP received HOT 1
- Query HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from truecallerjs.