Skip to content

Commit

Permalink
Fix typo in "Create a Segment" example
Browse files Browse the repository at this point in the history
- The example code in the "Create a Segment" section contains a typo.
  The `and_or` property contains a stray right parenthesis that should
  be removed.
  • Loading branch information
ryancabanas committed Aug 23, 2024
1 parent 472b4df commit 80ed5ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2033,7 +2033,7 @@ For more information about segments in Marketing Campaigns, please see our [User
Request request = new Request();
request.setMethod(Method.POST);
request.setEndpoint("contactdb/segments");
request.setBody("{\"conditions\":[{\"operator\":\"eq\",\"field\":\"last_name\",\"and)_or\":\"\",\"value\":\"Miller\"},{\"operator\":\"gt\",\"field\":\"last_clicked\",\"and_or\":\"and\",\"value\":\"01/02/2015\"},{\"operator\":\"eq\",\"field\":\"clicks.campaign_identifier\",\"and_or\":\"or\",\"value\":\"513\"}],\"name\":\"Last Name Miller\",\"list_id\":4}");
request.setBody("{\"conditions\":[{\"operator\":\"eq\",\"field\":\"last_name\",\"and_or\":\"\",\"value\":\"Miller\"},{\"operator\":\"gt\",\"field\":\"last_clicked\",\"and_or\":\"and\",\"value\":\"01/02/2015\"},{\"operator\":\"eq\",\"field\":\"clicks.campaign_identifier\",\"and_or\":\"or\",\"value\":\"513\"}],\"name\":\"Last Name Miller\",\"list_id\":4}");
Response response = sg.api(request);
System.out.println(response.getStatusCode());
System.out.println(response.getBody());
Expand Down

0 comments on commit 80ed5ff

Please sign in to comment.