CATCH LOC Developers

Login

Checking the information of the registered object API

Description

API for checking for registered objects and last location information

API

http://cms.catchloc.com/api.get.member.info.all.php

Parameters

api_key : Partner API_KEY
timestamp : Current time Unix timestamp
cert_key : Hash key for API attestation use Response

Response

protocol : JSON Array
member_key : CatchLoc location object member key
member_id : CatchLoc member id
member_name : CatchLoc member name
member_status : Object status value(Code)
member_status_str : Object status value (Text)
pincode : FAMY Pin Number
last_location_date : last registered location time (Unix timestamp)
last_location_speed : last registered location speed (km/h)
last_latitude : Last Latitude
last_longitude : Last Longitude

Example

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

            ===== Request =====

            http://cms.catchloc.com/api.get.member.info.all.php?
            api_key=abcdefghijklmnopqrstuvwxyz1234567890&
            timestamp=1446624149000&
            cert_key=abcdefghijklmnopqrstuvwxyz1234567890



            ===== Response =====

            - Success
            [
                {
                    "member_key":"abcdefghijklmnopqrstuvwxyz1234567890",
                    "member_id":"MEMBER_ID",
                    "member_name":"MEMBER_NAME",
                    "member_status":"0",
                    "member_status_str":"OBJECT_STATUS_0",
                    "pincode":"601559943",
                    "last_location_date":0,
                    "last_location_speed":1.2,
                    "last_latitude":0,
                    "last_longitude":0,
                    "odometer":12345
                },......
            ]

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

            ===== Request =====

            String page = "Page number in 100 units, For 2, list of data from 101 to 200";

            CatchLoc catchloc = new CatchLoc();

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

            JSONObject result = catchloc.getObjectsData(page);



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

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

        

            ===== Request =====

            import CatchLocSDKForAPI (common)

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

            - page : Page number in the list(Default 1)

            CatchLocAPI.shared.getObjectsData(page: page)

            혹은

            CatchLocAPI.shared.getObjectsData()
            { result in
                
                let jsonData = result.response

                or

                let jsonString = result.description()
                
            }

            ===== Response =====

            {
                "response" : API Response Body
            }
        

            ===== Request =====
            
            $page = 'Page number in 100 units, For 2, list of data from 101 to 200';

            $catchloc = new CatchLoc();

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

            $result = $catchloc->getObjectsData($page);


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

            "{
                "result"  : "ok",
                "type"    : "array"
                "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 =
            {
                page: 'Page number in 100 units, For 2, list of data from 101 to 200'
            };

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

            CatchLoc.getObjectsData(params, callback);



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

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