-1

I write a java code to access(connect) intuit quickbooks using this keys

String consumerKey = "qyprdTCZTGRhIYkRPU5OeXjd7rJiMS";

String consumerSecret = "L1ek9k7zX55rVXPlj5FikHYJgCnxfWCKBtjt81Ti";

String accessToken="qyprd6GGQ9w3OfmN0tg1M5xLzWdWF9RZOaMRVkb43tXNO6kG";

String accessTokenSecret = "RMKyYmrrqQY0xem2Cxj3pQeiOJwSR3ceT90wESWH";
String companyId = "1386063640";

String appId="b7qs4z3s2p";

when i execute this i got these errors

connection refused
or
java.net.UnknownHostException: sandboxquickbooks.api.intuit.com

please any one help to getting out this isue.

Madhawa Priyashantha
  • 9,633
  • 7
  • 33
  • 60

2 Answers2

0

Simply put, the computer does not recognize the server you re attempting to connect to. The address sandboxquickbooks.api.intuit.com is not able to be located by your computer when executing the code. Take a look at this post for a little more detail...

java.net.UnknownHostException: Invalid hostname for server: local

My guess is it is spelled wrong, or they changed the address/url.

Community
  • 1
  • 1
Sh4d0wsPlyr
  • 948
  • 12
  • 28
0

Correct sandbox base url is - https://sandbox-quickbooks.api.intuit.com Refer java sample app here- https://github.com/IntuitDeveloperRelations/QuickbooksV3API-Java

nimisha shrivastava
  • 2,357
  • 2
  • 16
  • 31