Esempio n. 1
0
    def delete(cls, template_id):
        """
        delete existing template

        API call used is v1/template/<template_id> (DELETE)

        @type template_id: int
        @param template_id: ID of the template to delete
        @return: json form of response data
        """

        request_url = "/template/%d" % int(template_id)
        return pt_client.pt_delete(request_url, {})
Esempio n. 2
0
    def delete(cls, pass_id):
        """
        delete existing pass

        API call used is v1/pass/<pass_id> (DELETE)

        @type pass_id: int
        @param pass_id: ID of Pass to delete
        @return: json form of response data
        """

        request_url = "/pass/%d" % int(pass_id)
        return pt_client.pt_delete(request_url, {})
Esempio n. 3
0
    def delete_location(cls, pass_id, location_id):
        """
        delete existing location from pass

        API call used is v1/pass/<pass_id>/location/<location_id> (DELETE)

        @type pass_id: int
        @param pass_id: ID of the pass to delete from
        @type location_id: int
        @param location_id: ID of the location to delete
        @return: json form of response data
        """

        request_url = "/pass/%d/location/%d" % (int(pass_id), int(location_id))
        return pt_client.pt_delete(request_url, {})