Skip to content

Commit 440e2fa

Browse files
authored
Update get_link.js
1 parent 7d5ce17 commit 440e2fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

connect/get_link.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const apiKey = process.env.TEXTURE_API_KEY || "<your-api-key-goes-here>";
66
console.log(`Using API key: ${apiKey}`);
77

88
// Node v18 has fetch built in
9-
fetch("https://api.texture.energy/v1/connections", {
9+
fetch("https://api.texturehq.com/v1/connections", {
1010
method: "POST",
1111
headers: {
1212
"Content-Type": "application/json",
@@ -16,7 +16,7 @@ fetch("https://api.texture.energy/v1/connections", {
1616
referenceId: "9bb290c8-fe97-46ce-92a8-952823164277", // A unique ID in your system for this connection
1717
redirectUrl: "http://localhost:8910", // The URL to redirect to after the user has connected
1818
tags: ["banana", "strawberry"], // The tags to group devices by
19-
clientName: "Energy Demo", // The name of your application
19+
clientName: "Example App", // The name of your application, if omitted defaults to your Organization name
2020
customerInfo: {
2121
email: "example@example.com", // The email address of the user to connect
2222
phone: "5555555555", // The phone number of the user to connect

0 commit comments

Comments
 (0)