aiprojectchiwa / getcontact-web-js

MIT License
1 stars 0 forks source link

chiwa.getAllTags(phoneNumber) not success #1

Open soulhd opened 2 hours ago

soulhd commented 2 hours ago

I installed your module and succeeded running ypur example: chiwa.authenticateWithToken(token) and chiwa.getNumberTag(phoneNumber, countryCode), but when I ran chiwa.getAllTags(phoneNumber) it returned:

{ status: 'error', message: 'No result found.' }

Please help.

aiprojectchiwa commented 2 hours ago

Hi soulhd, thanks for taking the time to report this issue and helping improve the project!

Could I confirm that you’ve followed the documentation to provide the full phone number, including the country code, as shown in the example?

const chiwa = require('@akane_chiwa/getcontact-web-js');

(async () => {
  try {
    // You MUST provide the complete number along with the country code.
    const phoneNumber = '+6285701203115';
    const tags = await chiwa.getAllTags(phoneNumber);
    console.log(tags);
  } catch (error) {
    console.error('Error fetching tags:', error);
  }
})();

If you’ve already done this and are still experiencing the error, it could be due to our limit on GetContact searches being reached. Please let me know if this helps or if you’re seeing something different on your end. Thanks again for bringing this up!