Skip to content

Commit 69424da

Browse files
committed
removed axios
1 parent fe82f92 commit 69424da

File tree

4 files changed

+0
-86
lines changed

4 files changed

+0
-86
lines changed

apps/portal/src/app/nebula/api-reference/chat/data.jsx

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// data.js
2-
31
export 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
{

apps/portal/src/app/nebula/api-reference/create-session/data.jsx

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff 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
{

apps/portal/src/app/nebula/api-reference/execute/data.jsx

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff 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
{

apps/portal/src/app/nebula/api-reference/list-session/data.jsx

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)