Open Isaacmeedinaa opened 1 year ago
This is my code:
const response = await intuitOAuthClient.makeApiCall({ url: `${BASE_URL}/v3/company/${companyNumber}/query?query=select * from Customer&minorversion=65`, method: "GET", headers: { Authorization: `Bearer ${intuitOAuthClient.token.access_token}`, "Content-Type": "application/json", Accepts: "application/json", } });
I am making a basic API call to get all the customers in my Quickbooks database.
I successfully authenticate with the OAuth 2.0 Client and get the access and refresh tokens.
This is the error I receive: Error: AuthResponse is not JSON
Error: AuthResponse is not JSON
UPDATE:
I tried this, and now I am getting this XML response:
`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
@Isaacmeedinaa Try this 'Content-Type': 'application/text'
'Content-Type': 'application/text'
This is my code:
I am making a basic API call to get all the customers in my Quickbooks database.
I successfully authenticate with the OAuth 2.0 Client and get the access and refresh tokens.
This is the error I receive:
Error: AuthResponse is not JSON