{test_event_code: TEST16279} TEST16279 [ { "action_source": "website", "event_id": 12345, "event_name": "TestEvent", "event_time": 1628618467, "user_data": { "client_user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Mobile/15E148 Safari/604.1", "em": "f660ab912ec121d1b1e928a0bb4bc61b15f5ad44d5efdc4e1c92a25e99b8e44a" } } ] { "data": [ { "action_source": "website", "event_id": 12345, "event_name": "TestEvent", "event_time": 1628618467, "user_data": { "client_user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Mobile/15E148 Safari/604.1", "em": "f660ab912ec121d1b1e928a0bb4bc61b15f5ad44d5efdc4e1c92a25e99b8e44a" } } ], "test_event_code": "TEST16279" } { "data": [ { "event_name": "Purchase", "event_time": 1628619563, "action_source": "email", "user_data": { "em": [ "7b17fb0bd173f625b58636fb796407c22b3d16fc78302d79f0fd30c2fc2fc068" ], "ph": [ null ] }, "custom_data": { "currency": "USD", "value": "142.52" } } ] } GraphRequest request = GraphRequest.newPostRequest( accessToken, "/553619789333770/events", new JSONObject("{\"data\":\"[\\n {\\n \\\"action_source\\\": \\\"website\\\",\\n \\\"event_id\\\": 12345,\\n \\\"event_name\\\": \\\"TestEvent\\\",\\n \\\"event_time\\\": 1628618467,\\n \\\"user_data\\\": {\\n \\\"client_user_agent\\\": \\\"Mozilla/5.0 (iPhone; CPU iPhone OS 13_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Mobile/15E148 Safari/604.1\\\",\\n \\\"em\\\": \\\"f660ab912ec121d1b1e928a0bb4bc61b15f5ad44d5efdc4e1c92a25e99b8e44a\\\"\\n }\\n }\\n]\",\"test_event_code\":\"TEST16279\"}"), new GraphRequest.Callback() { @Override public void onCompleted(GraphResponse response) { // Insert your code here } }); request.executeAsync(); Olá, mundo! - KS Evento

Deixe um comentário

O seu endereço de e-mail não será publicado.