how to connect intuit quickbooks using java program (Restful ws)?

680 views Asked by At

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.

2

There are 2 answers

0
Sh4d0wsPlyr On

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.

0
nimisha shrivastava On