TapTalk.io Documentation
  • Introduction
  • OneTalk Omnichannel Documentation
    • Getting Started with OneTalk
      • Team Members
      • Add Topic
      • Assign Agent to Topic
      • Paid Proactive Chat
    • Channel Integration
      • Telegram Integration
      • WhatsApp SME Integration
      • Instagram DM Integration
      • Facebook Messenger Integration
      • Live Chat Integration (iOS, Android, Web)
        • OneTalk Live Chat for Android
          • Get Started
          • Event Listener
          • Authentication
          • Case & Topic
          • Navigate Live Chat UI
          • Customize UI Appearance
        • OneTalk Live Chat for iOS
          • Get Started
          • Background Process in TapTalk.io Omnichannel iOS
          • Event Delegate
          • Authentication
          • Case & Topic
          • Navigate Live Chat UI
          • Customize UI Appearance
        • OneTalk Live Chat for Web
          • Get Started
          • Callback
          • Method
        • OneTalk Live Chat for React Native
          • Get Started - Android
          • Authentication - Android
          • Get Started - iOS
          • Authentication - iOS
        • OneTalk Live Chat for Flutter
          • Get Started - Android
          • Get Started - iOS
      • Google Business Messages Integration
      • Google Business Profile Integration
      • Tokopedia Integration
    • Integration API
      • Inbox API
      • User/Contact API
    • Live Chat Widget Callback Function
    • Social Channel Button
    • Custom Chatbot Integration
      • Get Started
      • Edit or Delete Chatbot
      • Development
    • QnA via API
    • Webhook
  • PowerTalk Chat SDK Documentation
    • Getting Started with PowerTalk
    • PowerTalk Android
      • Get Started
      • Enable Chat Features
      • Authentication
      • TapUI and TapCore
      • Background Process in TapTalk.io
      • Connection
      • Event Listener
      • Push Notification
      • General
      • User
      • Room List
        • Room List - TapUI
        • Room List - TapCore
      • Chat Room and Messages
        • Chat Room and Messages - TapUI
        • Chat Room and Messages - TapCore
      • Contact
      • Message Type
      • Customize UI Appearance
      • Customize Chat Features
      • Customize Chat Message Bubble
      • Customize Navigation Bar
      • Deep Linking
      • Error Codes
    • PowerTalk iOS
      • Get Started
      • TapUI and TapCore
      • Background Process in TapTalk.io
      • Implement Application Delegate
      • Authentication
      • Connection
      • Event Delegate
      • Push Notification
      • General
      • User
      • Room List
        • Room List - TapUI
        • Room List - TapCore
      • Chat Room and Messages
        • Chat Room and Messages - TapUI
        • Chat Room and Messages - TapCore
      • Contact
      • Message Type
      • Customize UI Appearance
      • Customize Chat Features
      • Customize Chat Message Bubble
      • Customize Navigation Bar
      • Deep Linking
      • Error Codes
    • PowerTalk React Native
      • Get Started - Android
      • Get Started - iOS
    • PowerTalk Flutter
      • Get Started - Android
      • Get Started - iOS
    • Javascript SDK
      • Get Started
      • Authentication
      • Connection
      • General
      • Event Listener
      • User
      • Room List
      • Chat Room
      • Messages
      • Contact
      • Message Type
    • Server API
      • Get Started
      • Base URL
      • Authentication
      • User
      • Contact
      • Message
      • Room
    • Webhook
      • Get Started
      • Webhook Payload
  • MeetTalk SDK Documentation
    • Getting Started with MeetTalk
    • MeetTalk Android
      • Get Started
      • Event Listener
    • MeetTalk iOS
      • Get Started
      • Implement Application Delegate
      • Event Delegate
  • SendTalk API Documentation
    • Introduction
    • Whatsapp Verification
Powered by GitBook
On this page
  • Get All User Contact
  • Get Contact Detail Info with TapTalk User ID
  • Get Contact Detail Info with Client User ID
  • Add User to Contact with User ID
  • Add User to Contact with Phone Number
  • Remove User from Contact
  • Get User Contact by Username
  • Get Filtered User Contacts
  • Report User
  • Report Message
  • Block User
  • Unblock User
  • Get Blocked User List
  • Get Blocked User IDs

Was this helpful?

  1. PowerTalk Chat SDK Documentation
  2. Javascript SDK

Contact

If your application is using the core implementation type, you can use the TapCoreContactManager class to manage your user's contacts.

TapTalk Contact Method

Description

Get all of the user's contact data from TapTalk.io

Get a detailed contact info with selected TapTalk.io user ID

Get a detailed contact info with selected Client user ID (xcUserID)

Add a user with selected TapTalk.io user ID to the active user's contacts

Add a user with selected phone number to the active user's contacts

Remove a user with selected TapTalk.io user ID from the active user's contacts

Get user's contact by username

Search user's contact list

Submit a report for a selected user

Submit a report for a selected message

Block a user from sending or receiving messages

Unblock a blocked user

Retrieve a list of blocked users

Retrieve a list of IDs from blocked users

Get All User Contact

Get all of the user's contact data from TapTalk.io.

tapCoreContactManager.getAllUserContacts({
   onSuccess: (contactList) => {
          // do action here
    },
    onError: (errorCode, errorMessage) => {
          // do action here
    }
})

Get Contact Detail Info with TapTalk User ID

Get a detailed contact info with selected TapTalk.io user ID.

tapCoreContactManager.getUserDataWithUserID(USER_ID, {
   onSuccess: (response) => {
          // do action here
    },
    onError: (errorCode, errorMessage) => {
          // do action here
    }
})

Parameters

USER_ID: (String) Taptalk.io User ID of the selected user

Get Contact Detail Info with Client User ID

Get a detailed contact info with selected Client user ID (xcUserID).

tapCoreContactManager.getUserDataWithXCUserID(XC_USER_ID, {
   onSuccess: (response) => {
          // do action here
    },
    onError: (errorCode, errorMessage) => {
          // do action here
    }
})

Parameters

XC_USER_ID: (String) Client User ID of the selected user

Add User to Contact with User ID

Add a user with selected TapTalk.io user ID to the active user's contacts.

tapCoreContactManager.addToTapTalkContactsWithUserID(USER_ID, {
   onSuccess: (response) => {
          // do action here
    },
    onError: (errorCode, errorMessage) => {
          // do action here
    }
})

Parameters

USER_ID: (String) Taptalk.io User ID of the contact to be added

Add User to Contact with Phone Number

Add a user with selected phone number to the active user's contacts.JavaKotlin

tapCoreContactManager.addToTapTalkContactsWithPhoneNumber(PHONE_NUMBER, {
   onSuccess: (response) => {
          // do action here
    },
    onError: (errorCode, errorMessage) => {
          // do action here
    }
})

Parameters

PHONE_NUMBER: (String) phone number of the contact to be added

Remove User from Contact

Remove a user with selected TapTalk.io user ID from the active user's contacts.

tapCoreContactManager.removeFromTapTalkContacts(userID, {
   onSuccess: (response) => {
          // do action here
    },
    onError: (errorCode, errorMessage) => {
          // do action here
    }
})

Parameters

USER_ID: (String) Taptalk.io User ID of the contact to remove

Get User Contact by Username

Call this method to get User Contact by username.

tapCoreContactManager.getUserByUsername(USERNAME, ignoreCase, {
   onSuccess: (response) => {
          // do action here
    },
    onError: (errorCode, errorMessage) => {
          // do action here
    }
})

Parameters USERNAME: (String) username IGNORE_CASE: (Boolean) ignore case username

Get Filtered User Contacts

Call this method to search user's contact list.

tapCoreContactManager.getFilterUserContacts(contactString, {
   onContactFound: (contactList) => {
          // do action here
    },
    onContactNotFound: () => {
          // do action here
    }
})

Parameters CONTACT_STRING: (String) keyword

Report User

You may call this method to submit a report for a selected user. Submitted reports can then be viewed through the dashboard.

tapCoreContactManager.reportUser(
    USER_ID, 
    CATEGORY, 
    IS_OTHER_CATEGORY, 
    REASON,
    {
        onSuccess : (response) => {
            // Successfully reported user
        },
        onError : (errorCode, errorMessage) => {
        
        }
    }
)

Parameters USER_ID: (String) ID of the user to report CATEGORY: (String) Category of the violation. max length is 100 characters IS_OTHER_CATEGORY: (Boolean) If the category is other than the predefined categories REASON: (String) reason why the user is reported

Report Message

You may call this method to submit a report for a selected message. Submitted reports can then be viewed through the dashboard.

tapCoreContactManager.reportMessage(
    MESSAGE_ID,
    ROOM_ID,
    CATEGORY, 
    IS_OTHER_CATEGORY, 
    REASON,
    {
        onSuccess : (response) => {
            // Successfully reported message
        },
        onError : (errorCode, errorMessage) => {

        }
    }
)

Parameters MESSAGE_ID: (String) unique server ID of the message to report ROOM_ID: (String) ID of the room where the message belongs to CATEGORY: (String) Category of the violation. max length is 100 characters IS_OTHER_CATEGORY: (Boolean) If the category is other than the predefined categories REASON: (String) reason why the message is reported

Block User

You may block a user to stop conversation flow with the blocked user. Blocked users will not be able to send and receive message, or retrieve profile info from the active user.

tapCoreContactManager.blockUser(
    USER_ID,
    {
        onSuccess : (response) => {
            // Successfully blocked user
        },
        onError : (errorCode, errorMessage) => {

        }
    }
)

Parameters USER_ID: (String) ID of the user to block

Unblock User

You may unblock a blocked user to let them send and receive message from the active user.

tapCoreContactManager.unblockUser(
    USER_ID,
    {
        onSuccess : (response) => {
            // Successfully unblocked user
        },
        onError : (errorCode, errorMessage) => {

        }
    }
)

Parameters USER_ID: (String) ID of the user to unblock

Get Blocked User List

You may call this method to retrieve a list of blocked users.

tapCoreContactManager.getBlockedUserList({
    onSuccess: (response) => {
        // Successfully retrieved blocked users
    },
    onError: (errorCode, errorMessage) => {
    
    }
});

Get Blocked User IDs

You may call this method to retrieve a list of IDs from blocked users.

tapCoreContactManager.getBlockedUserIDs({
    onSuccess: (res) => {
        // Successfully retrieved blocked user IDs
    },
    onError: (errCode, errMes) => {
    }
});
PreviousMessagesNextMessage Type

Last updated 2 years ago

Was this helpful?

​Get All User Contact​
​Get Contact Detail Info with TapTalk User ID​
​Get Contact Detail Info with Client User ID​
​Add User to Contact with User ID​
​Add User to Contact with Phone Number​
​Remove User from Contact​
Get User Contact by Username
Get Filtered User Contacts
Report User
Report Message
Block User
Unblock User
Get Blocked User List
Get Blocked User IDs