Giovanni Cocco
BRBuildShip + Rowy
•Created by Giovanni Cocco on 9/21/2024 in #💬・general
Giovanni Cocco - Hi everyone! Is it possible SS...
It wasn't clear how to do this using Buildship, but it was very easy to do using Pipedream. Thanks!
3 replies
BRBuildShip + Rowy
•Created by Giovanni Cocco on 9/18/2024 in #💬・general
Giovanni Cocco - Hi everyone! I have a problem ...
Thanks!
6 replies
BRBuildShip + Rowy
•Created by Giovanni Cocco on 9/18/2024 in #💬・general
Giovanni Cocco - Hi everyone! I have a problem ...
I got!
6 replies
BRBuildShip + Rowy
•Created by Giovanni Cocco on 9/18/2024 in #💬・general
Giovanni Cocco - Hi everyone! I have a problem ...
@Gaurav Chadha here is the doc https://docs.asaas.com/reference/create-new-customer
Yes the dollar sign is part of the api key. I tried without $ using Postman and I got 401 (Unauthorized).
I tried the same thing on Buildship hoping to get a 401 error and determine that the problem is the dollar sign, but I got the same error as before.
Unexpected token '<', "<!doctype "... is not valid JSON
6 replies
BRBuildShip + Rowy
•Created by Giovanni Cocco on 9/18/2024 in #💬・general
Giovanni Cocco - Hi everyone! I have a problem ...
I even created a new, simpler node with just the POST method for testing and still got the same error.
import fetch from 'node-fetch';
export default async function callApiPostMethod({
url,
access_token,
name,
cpfCnpj,
email,
mobilePhone
}) {
const requestBody = {
name,
cpfCnpj,
email,
mobilePhone
};
const response = await fetch(url, {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
'Access_token': access_token
},
body: JSON.stringify(requestBody)
});
const data = await response.json();
return data;
}
6 replies
BRBuildShip + Rowy
•Created by Giovanni Cocco on 9/18/2024 in #💬・general
Giovanni Cocco - Hi everyone! I have a problem ...
6 replies
BRBuildShip + Rowy
•Created by Giovanni Cocco on 9/16/2024 in #💬・general
Giovanni Cocco - Hi everyone! I am building a c...
@Luis thanks! I will pick a time!
3 replies