Retrieve address via iJiya tag

Sign up         Sign in

iJiya SDK for PHP

Step 1 : include library "nusoap.php"

Step 2 : Define veriable
    $server_url = 'http://ijiya.com/developer/retrieve_address.php'
    $app_key ='XYZ'
    $iJiya_tag ='8000333435'

Step 3 : Create object
    $client = new nusoap_client($server_url.'?wsdl');

   // Check for an error
    $err = $client->getError();
    if ($err) {
        echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
        die;
     }

Step 4 : Call the SOAP method

    $details = array('tag_id'=>$iJiya_tag,'key'=>$app_key);
    $result = $client->call('getAddress', array('details' => $details));



iJiya SDK for ANDROID

Step 1 : include library "ksoap2-android-assembly-2.4-jar"

Step 2 : Define veriable
    Public String Results=null;
    private static final String METHOD_NAME = "getAddress";
    private static final String NAMESPACE = "urn:getaddress";
    private static final String URL = http://ijiya.com/developer/retrieve_address.php?wsdl&opt=getAddress";
    private static final String SOAP_ACTION = "urn:retrieve_address#getAddress";

Step 3 : Create object
    SoapObject soapclient = new SoapObject(NAMESPACE, METHOD_NAME);
    SoapObject request = new SoapObject(NAMESPACE,METHOD_NAME);
    request.addProperty("tag_id", "8000333435");
    request.addProperty("key", "iJiya Application Key");
    soapclient.addProperty(METHOD_NAME, request);
    SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
    envelope.setOutputSoapObject(soapclient);
    HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
        try {
            androidHttpTransport.call(SOAP_ACTION, envelope);
            Object resultRequestSOAP = envelope.getResponse();
            Results = resultRequestSOAP.toString();
        } catch (Exception e) {
            e.printStackTrace();
        }




Response


    1) status : 0 or 1 : 0 for some error and 1 for success
    2) message : Error message
    3) data : result gives of given iJiya tag

Example 1 : Error
                {
                      "status":0,
                      "message":"Your given iJiya Tag id is not valid."
                }


Example 2 : Success
                {
                       "status":1,
                          "data":
                                {
                                "tag_id":"8000333435",
                                "door_number":"64",
                                "floor_number":"",
                                "building_name":"",
                                "address1":"Mira Ambika Soc., Puna Gam",
                                "address2":"Near LPD School",
                                "city":"Surat",
                                "state":"Gujarat",
                                "country":"India",
                                "zip":"396500",
                                "latitude":"21.199450",
                                "longitude":"72.873682"
                                }
                }

For create new iJiya tag

Call to http://ijiya.com/developer/create_tag_advance.php this link for create new iJiya tag