File tree Expand file tree Collapse file tree 4 files changed +0
-86
lines changed
apps/portal/src/app/nebula/api-reference Expand file tree Collapse file tree 4 files changed +0
-86
lines changed Original file line number Diff line number Diff line change 1- // data.js
2-
31export const chatEndpointData = {
42 title : "Initiate Chat" ,
53 method : "POST" ,
@@ -48,29 +46,6 @@ export const chatEndpointData = {
4846 -H "Content-Type: application/json" \\
4947 -d '{"user_id": "user123", "message": "Hello!", "metadata": {"topic": "support"}}'` ,
5048 } ,
51- {
52- language : "JavaScript" ,
53- code : `const axios = require('axios');
54-
55- const secretKey = 'YOUR_THIRDWEB_SECRET_KEY';
56-
57- axios.post('https://nebula-api.thirdweb.com/chat', {
58- user_id: 'user123',
59- message: 'Hello!',
60- metadata: { topic: 'support' },
61- }, {
62- headers: {
63- 'x-secret-key': secretKey,
64- 'Content-Type': 'application/json',
65- },
66- })
67- .then(response => {
68- console.log("Chat initiated successfully.", response.data);
69- })
70- .catch(error => {
71- console.error(error);
72- });` ,
73- } ,
7449 ] ,
7550 apiResponses : [
7651 {
Original file line number Diff line number Diff line change @@ -35,27 +35,6 @@ export const createSessionEndpointData = {
3535 -H "x-secret-key: YOUR_THIRDWEB_SECRET_KEY" \\
3636 -d '{"session_name": "my_new_session", "metadata": {"key": "value"}}'` ,
3737 } ,
38- {
39- language : "JavaScript" ,
40- code : `const axios = require('axios');
41-
42- const secretKey = 'YOUR_THIRDWEB_SECRET_KEY';
43-
44- axios.post('https://nebula-api.thirdweb.com/session', {
45- session_name: 'my_new_session',
46- metadata: { key: 'value' },
47- }, {
48- headers: {
49- 'x-secret-key': secretKey,
50- },
51- })
52- .then(response => {
53- console.log("Session created successfully.", response.data);
54- })
55- .catch(error => {
56- console.error(error);
57- });` ,
58- } ,
5938 ] ,
6039 apiResponses : [
6140 {
Original file line number Diff line number Diff line change @@ -40,28 +40,6 @@ export const executeEndpointData = {
4040 -H "Content-Type: application/json" \\
4141 -d '{"action": "your_action", "parameters": {"key": "value"}}'` ,
4242 } ,
43- {
44- language : "JavaScript" ,
45- code : `const axios = require('axios');
46-
47- const secretKey = 'YOUR_THIRDWEB_SECRET_KEY';
48-
49- axios.post('https://nebula-api.thirdweb.com/execute', {
50- action: 'your_action',
51- parameters: { key: 'value' },
52- }, {
53- headers: {
54- 'x-secret-key': secretKey,
55- 'Content-Type': 'application/json',
56- },
57- })
58- .then(response => {
59- console.log("Action executed successfully.", response.data);
60- })
61- .catch(error => {
62- console.error(error);
63- });` ,
64- } ,
6543 ] ,
6644 apiResponses : [
6745 {
Original file line number Diff line number Diff line change @@ -21,24 +21,6 @@ export const listSessionsEndpointData = {
2121 code : `curl -X GET https://nebula-api.thirdweb.com/session/list \\
2222 -H "x-secret-key: YOUR_THIRDWEB_SECRET_KEY"` ,
2323 } ,
24- {
25- language : "JavaScript" ,
26- code : `const axios = require('axios');
27-
28- const secretKey = 'YOUR_THIRDWEB_SECRET_KEY';
29-
30- axios.get('https://nebula-api.thirdweb.com/session/list', {
31- headers: {
32- 'x-secret-key': secretKey,
33- },
34- })
35- .then(response => {
36- console.log(response.data);
37- })
38- .catch(error => {
39- console.error(error);
40- });` ,
41- } ,
4224 ] ,
4325 apiResponses : [
4426 {
You can’t perform that action at this time.
0 commit comments