CATCH LOC Developers

Login

[Group Management] API access for removing group information

Description

API access to remove location object's group information.

API

api_code : api.common.group.set.delete

HOST : http://cms.catchloc.com/api.partner.common.php

Method : GET

Protocol : JSON

Parameters

api : api_code
api_key : Client's partner key
timestamp : Client's partner key
cert_key : Certification key
group_key : HASH KEY to certifiy GROUP

* Caution : Removing procedure will delete group's member as well.


Response

result : RESULT
message : result code

Example

Rest API
Android SDK
Swift(iOS) SDK
PHP SDK
Javascript SDK

            ===== Request =====

            http://cms.catchloc.com/api.partner.common.php?
            api=api.common.group.set.delete&
            api_key=xxxxx&
            timestamp=1513319595&
            cert_key=xxxxx&
            group_key=xxxxxx



            ===== Response =====

            - Success
            {
              "result":"OK",
              "message":"GROUP_DELETE"
            }

            - Fail
            {
                "result":"FAIL",
                "message":"Reason"
            }
        

            ===== Request =====

            String group_key = "HASH KEY to certifiy GROUP";

            CatchLoc catchloc = new CatchLoc();

            catchloc.setApiKey("API KEY");
            catchloc.setServerKey("SERVER KEY");

            JSONObject result = catchloc.removeGroup(group_key);



            ===== Response (JSONObject) =====

            {
                "result"  : "ok",
                "type"    : "jsonobject",
                "message" : API Response Body
            }

        

            ===== Request =====

            import CatchLocSDKForAPI (common)

            CatchLocAPI.shared.setApiKey(API_KEY)
            CatchLocAPI.shared.setserverKey(SERVER_KEY)

            -GROUP_KEY : HASH KEY for GROUP authentication
            
            CatchLocAPI.shared.removeGroup(groupKey: GROUP_KEY)
            { result in
                
                let jsonData = result.response

                or

                let jsonString = result.description()
                
            }

            ===== Response =====

            {
                "response" : API Response Body
            }
        

            ===== Request =====

            $group_key = 'HASH KEY to certifiy GROUP';

            $catchloc = new CatchLoc();

            $catchloc->setApiKey("API KEY");
            $catchloc->setServerKey("SERVER KEY")

            $result = $catchloc->removeGroup($group_key);


            ===== Response (JSON String) =====

            "{
                "result"  : "ok",
                "type"    : "map",
                "message" : API Response Body
            }"
        

            ===== Request =====

            var callback = function(json)
            {
                code... (handle for api response)
                (e.g. : create marker on map or print list)
            };

            var params =
            {
                group_key: 'HASH KEY to certifiy GROUP',
            };

            CatchLoc.setApiKey("API KEY");
            CatchLoc.setServerKey("SERVER KEY");

            CatchLoc.removeGroup(params, callback);



            ===== Response (JSON, using parameter in callback function) =====

            {
                "result"  : "ok",
                "type"    : "json",
                "message" : API Response Body
            }