package gapi-ocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = {
  1. analytics : AnalyticsSummary.t;
    (*

    A summary of the click analytics for the short and long URL. Might not be present if not requested or currently unavailable.

    *)
  2. created : string;
    (*

    Time the short URL was created; ISO 8601 representation using the yyyy-MM-dd'T'HH:mm:ss.SSSZZ format, e.g. "2010-10-14T19:01:24.944+00:00".

    *)
  3. id : string;
    (*

    Short URL, e.g. "http://goo.gl/l6MS".

    *)
  4. kind : string;
    (*

    The fixed string "urlshortener#url".

    *)
  5. longUrl : string;
    (*

    Long URL, e.g. "http://www.google.com/". Might not be present if the status is "REMOVED".

    *)
  6. status : string;
    (*

    Status of the target URL. Possible values: "OK", "MALWARE", "PHISHING", or "REMOVED". A URL might be marked "REMOVED" if it was flagged as spam, for example.

    *)
}
val analytics : (t, AnalyticsSummary.t) GapiLens.t
val created : (t, string) GapiLens.t
val id : (t, string) GapiLens.t
val kind : (t, string) GapiLens.t
val longUrl : (t, string) GapiLens.t
val status : (t, string) GapiLens.t
val empty : t
val render : t -> GapiJson.json_data_model list
val parse : t -> GapiJson.json_data_model -> t
val to_data_model : t -> GapiJson.json_data_model
val of_data_model : GapiJson.json_data_model -> t