cancel
Showing results for 
Search instead for 
Did you mean: 

Java code for external connection

SOLVED
Highlighted

Java code for external connection

Hello,

I'm looking for some java code that allow me to connect passing url/username/password. 

 

Is possible to perform this operation?

 

Thanks in advance

2 REPLIES
Contributor

Re: Java code for external connection

The Mega Hopex Help provides info on the Basic Web Service Authentication details:

 

https://doc.mega.com/hopex-v2r1-en/#page/MTS2%2FAPI%2FDoc_Guide_WebServices.Calling_the_endpoints_to...

 

You should be able to use Postman (Chrome plugin) to do some preliminary testing of an API - without needing to write any code:

https://www.getpostman.com/docs/v6/postman/sending_api_requests/authorization

Or, see this discussion of “Advanced Rest Client”, a Chrome extension

https://javapapers.com/web-service/restful-services-http-basic-authentication/

 

These links may be of some use for Java exemplar code, calling a Web Service with Basic Authentication

http://www.codingpedia.org/ama/jaxrs-rest-client-example-with-basic-authentication

 

https://jersey.github.io/documentation/latest/client.html#d0e5314

 

 

Enterprise Architect, World Traveler, Intrepid Sailor
Personal Motto: "Have Passport, Will Travel"
Company Motto: "Accelerate - Innovate - Elevate"
Occasional Contributor

Re: Java code for external connection

Hi,

Thanks for your suggestion! We will study all the documents you mentioned.

 

Best Regards