android/sdk/src/main/java/io/o2mc/sdk/business/batch/BatchDispatcher.java
public void post(String url, Batch batch) {
    String json = batchToJson(batch);

    RequestBody body = RequestBody.create(JSON, json);
    Request request = new Request.Builder().url(url).post(body).build();

    CLIENT.newCall(request).enqueue(callback);
  }
/**
   * Sends analytical events to backend specified by URL in JSON format.
   *
   * @param url url of backend to send events to
   * @param batch list of events with meta data
   */
Sends analytical events to backend specified by URL in JSON format.
@param url url of backend to send events to
@param batch list of events with meta data
Sends analytical events to backend specified by URL in JSON format . @param url url of backend to send events to @param batch list of events with meta data
public void post(String url, Batch batch) {
    String json = batchToJson(batch);
    RequestBody body = RequestBody.create(JSON, json);
    Request request = new Request.Builder().url(url).post(body).build();
    CLIENT.newCall(request).enqueue(callback);
  }
public void post ( String url , Batch batch ) { String json = batchToJson ( batch ) ; RequestBody body = RequestBody . create ( JSON , json ) ; Request request = new Request . Builder ( ) . url ( url ) . post ( body ) . build ( ) ; CLIENT . newCall ( request ) . enqueue ( callback ) ; }
Sends analytical events to backend specified by URL in JSON format.
Sends analytical events to backend specified by URL in JSON format .