Exemple #1
0
  /**
   * Create a Parse API URL using the provided data.
   *
   * @param endPoint The end point
   * @param objectId The optional objectId
   * @return The Parse API URL of the format {@code https://api.parse.com/<endpoint>[/<objectId>]}.
   */
  protected static String getUrl(final String endPoint, final String objectId) {
    String url = Parse.getParseAPIUrl(endPoint) + (objectId != null ? "/" + objectId : "");

    if (LOGGER.isDebugEnabled()) {
      LOGGER.debug("Request URL: " + url);
    }

    return url;
  }