• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

Call Pabbly API resulted in 404 Not Found error

yurika

Member
Hello, I am connecting to Pabbly API from a custom application written in Java using spring framework.

I am testing connection by using this API link:

in the request header I am providing API credentials like this:

String plainCreds = "[API Key]:[Secret Key]; // Use actual values from pabbly
byte[] plainCredsBytes = plainCreds.getBytes();
Encoder enc = Base64.getEncoder();
byte[] base64CredsBytes = enc.encode(plainCredsBytes);
String base64Creds = new String(base64CredsBytes);

HttpHeaders headers = new HttpHeaders();
headers.add("Authorization", "Basic " + base64Creds);
RestTemplate restTemplate = new RestTemplate();

headers.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));
HttpEntity<String> entity = new HttpEntity<>(headers);

Map<String, Object> pabblyResponse = (Map<String, Object>) restTemplate.exchange(uri, HttpMethod.POST, entity, Map.class);

--------
at this point my page shows that message 404 Not Found

How can it be resolved?

Please help

Thanks

Kate
 
Top