typpo / textbelt

Free API for outgoing SMS
https://textbelt.com/
MIT License
3.01k stars 508 forks source link

Textbelt with RestEasy #148

Open yuanpeterli opened 4 years ago

yuanpeterli commented 4 years ago

Do you have examples of interfacing Textbelt with RestEasy? In particular, what goes to target.request().post() below?

        ResteasyClient client = new ResteasyClientBuilder().build();
        ResteasyWebTarget target = client.target("https://textbelt.com/text");
        Response response = target.request().post(????);
        // example: Response response = target.request().post(Entity.entity(user, "application/vnd.com.demo.user-management.user+xml;charset=UTF-8;version=1"));
        String result = response.getStatus();
        response.close();