File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const apiKey = process.env.TEXTURE_API_KEY || "<your-api-key-goes-here>";
66console . 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
You can’t perform that action at this time.
0 commit comments