Comments (2)
Same issue here.
I believe this might be an overall bug with the entire tool.
The javascript examples from their demo page aren't working as well. Click on any demo in the link below.
from chatcamp-javascript-examples.
The error you're encountering typically occurs when there's a problem with the authentication process, specifically with the access_token
which is a crucial part of user creation and authentication in ChatCamp.
To create a user, you should make a POST request to /api/2.0/users.create
with the necessary payload. Here is an example of the payload:
{
"id": "the_user_id",
"display_name": "User's Display Name",
"first_name": "User's First Name",
"last_name": "User's Last Name",
"email": "[email protected]",
"phone_number": "User's Phone Number",
"profile_url": "URL of the User's Profile",
"avatar_url": "URL of the User's Avatar",
"access_token": "User's Access Token"
}
After creating a user and obtaining the access_token, you need to initialize the ChatCamp SDK with the appId and then authenticate the user session with the access_token as described in our JavaScript Chat Authentication Documentation.
Please ensure that you follow the steps outlined in the documentation carefully. If authentication is not desired for testing purposes, we can disable the access_token
requirement for your account. Keep in mind this should only be considered if you have adequate security measures in place.
We've checked our demo pages, and they are functioning as expected. If the issue persists, please double-check your app_id
and ensure that the access_token
is being used correctly as per the documentation.
For any further assistance, feel free to reach out to our support team.
from chatcamp-javascript-examples.
Related Issues (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 chatcamp-javascript-examples.