Skip to content

Java Client is not good to use as client library #6

@hungntit

Description

@hungntit

String bodyValue = "{"messages":" +
"[{"content":"My first message", " +
""destination_number":"YOUR_MOBILE_NUMBER"" +
"}]}";

Who want to create an json manually? I thinks we need to create an object Message, and just:
Messages messages = Messages.builder()
.addMessage(
Message.builder().withContent("My First Message")
.withDestinationNumber("+xxxxxx").build())
.build()

MessageClient client = MessageClient(apikey, secretkey);

client.send(messages)
Do you think it more simple?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions