@@ -0,0 +1,1444 @@
+import org.scribe.builder.ServiceBuilder;%0Aimport org.scribe.model.OAuthRequest;%0Aimport org.scribe.model.Response;%0Aimport org.scribe.model.Token;%0Aimport org.scribe.model.Verb;%0Aimport org.scribe.oauth.OAuthService;%0A%0Apublic class EngagementHistory %7B%0A%09public static void main(String%5B%5D args) %7B%0A%09%09// OAuth Service from Scribe, you will need to fill in your api key & secret%0A%09%09OAuthService service = new ServiceBuilder()%0A%09%09%09 %09.provider(EHAPI.class)%0A                .apiKey(%22%7BYOUR API KEY%7D%22)%0A                .apiSecret(%22YOUR API SECRET%22)%0A                .build();%0A%09%09 // OAuth token, you will need to fill in your token & secret%0A%09%09 Token accessToken = new Token(%22%7BYOUR TOKEN%7D%22,%0A%09            %22%7BYOUR TOKEN SECRET%7D%22);%0A%09%09 // Create the OAuth request, you will need to update the following:%0A%09%09 // %7BBASE URI%7D - with your domain%0A%09%09 // %7BYOUR ACCOUNT NUMBER%7D - with your account number%0A%09%09 OAuthRequest request = new OAuthRequest(Verb.POST, %22https://%7BBASE URI%7D/interaction_history/api/account/%7BYOUR ACCOUNT NUMBER%7D/interactions/search?offset=0&limit=100%22);%0A%09%09 request.addHeader(%22Content-Type%22, %22application/json%22);%0A%09%09 // body parameters that you would like to add to the api call%0A%09%09 request.addPayload(%22%7B%5C%22start%5C%22:%7B%5C%22from%5C%22:1433140200000,%5C%22to%5C%22:1435645800000%7D%7D%22);%0A%09%09 // sign the request%0A%09%09 service.signRequest(accessToken, request); %0A%09%09 Response response = request.send();%0A%09%09 // print the response to the console%0A%09%09 System.out.println(response.getBody());%0A%09 %7D%0A%0A%7D%0A

Create file