use of software.amazon.awssdk.services.pinpoint.PinpointClient in project aws-doc-sdk-examples by awsdocs.
the class UpdateEmailChannel method main.
// snippet-start:[pinpoint.java2.updateemailchannel.main]
public static void main(String[] args) {
// TODO: Provide ApplicationId/ProjectId
String appId = "";
PinpointClient pinpoint = PinpointClient.builder().region(Region.US_EAST_1).build();
EmailChannelResponse getResponse = getEmailChannel(pinpoint, appId);
System.out.println("Response : " + getResponse);
pinpoint.close();
}
use of software.amazon.awssdk.services.pinpoint.PinpointClient in project aws-doc-sdk-examples by awsdocs.
the class ListEndpointIds method main.
public static void main(String[] args) {
final String USAGE = "\n" + "Usage: " + " <applicationId> <userId>\n\n" + "Where:\n" + " applicationId - The ID of the Amazon Pinpoint application that has the endpoint.\n" + " userId - The user id applicable to the endpoints";
if (args.length != 2) {
System.out.println(USAGE);
System.exit(1);
}
String applicationId = args[0];
String userId = args[1];
PinpointClient pinpoint = PinpointClient.builder().region(Region.US_EAST_1).build();
listAllEndpoints(pinpoint, applicationId, userId);
pinpoint.close();
}
use of software.amazon.awssdk.services.pinpoint.PinpointClient in project aws-doc-sdk-examples by awsdocs.
the class LookUpEndpoint method main.
public static void main(String[] args) {
final String USAGE = "\n" + "Usage: " + "LookUpEndpoint <appId> <endpoint>\n\n" + "Where:\n" + " appId - the ID of the application to delete.\n\n" + " endpoint - the ID of the endpoint. ";
if (args.length != 2) {
System.out.println(USAGE);
System.exit(1);
}
String appId = args[0];
String endpoint = args[1];
System.out.println("Looking up an endpoint point with ID: " + endpoint);
PinpointClient pinpoint = PinpointClient.builder().region(Region.US_EAST_1).build();
lookupPinpointEndpoint(pinpoint, appId, endpoint);
pinpoint.close();
}
use of software.amazon.awssdk.services.pinpoint.PinpointClient in project aws-doc-sdk-examples by awsdocs.
the class UpdateChannel method main.
public static void main(String[] args) {
final String USAGE = "\n" + "Usage: " + "CreateChannel <appId>\n\n" + "Where:\n" + " appId - the name of the application whose channel is updated.\n\n";
if (args.length != 1) {
System.out.println(USAGE);
System.exit(1);
}
String appId = args[0];
PinpointClient pinpoint = PinpointClient.builder().region(Region.US_EAST_1).build();
SMSChannelResponse getResponse = getSMSChannel(pinpoint, appId);
toggleSmsChannel(pinpoint, appId, getResponse);
pinpoint.close();
}
use of software.amazon.awssdk.services.pinpoint.PinpointClient in project aws-doc-sdk-examples by awsdocs.
the class AddExampleUser method main.
public static void main(String[] args) {
final String USAGE = "\n" + "Usage: " + " <appId>\n\n" + "Where:\n" + " appId - the ID of the application to delete.\n\n";
if (args.length != 2) {
System.out.println(USAGE);
System.exit(1);
}
String applicationId = args[0];
String endPointId = args[1];
PinpointClient pinpoint = PinpointClient.builder().region(Region.US_EAST_1).build();
updatePinpointEndpoint(pinpoint, applicationId, endPointId);
pinpoint.close();
}
Aggregations