lidox
lidox

Reputation: 1971

Asynchronous Batch Requests using Facebook Marketing API (JAVA)

is there a way to make asynchronous batch requests using java sdk? The docs show some examples using curl only. Does anyone have a java example?

    BatchRequest batchRequest = new BatchRequest(context);

    // adding some requests
    request.addToBatch(batchRequest1);
    request.addToBatch(batchRequest2);
    request.addToBatch(batchRequest3);

    List<APIResponse> batchResult = batchRequest.execute(); <-- How to async?

Upvotes: 1

Views: 887

Answers (0)

Related Questions