Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

sgilleland1 on "API issue"

$
0
0

We had API's developed for a mobile app that we are creating, one is for login. Here is the post string....

http://www.ivolleytech.com/api/login.php?username=parveen&password=123456

When put into a browser everything is fine...we get

{"status":"3","message":{"message":"Logged in Successfully","data":{"0":"6707","member_id":"6707","1":"parveen","user_name":"parveen","2":"parveen","first_name":"parveen","3":"kinger","last_name":"kinger","4":"$P$B8lnLoGAce9eJPyJX8RcIp4SAmG.PW.","password":"$P$B8lnLoGAce9eJPyJX8RcIp4SAmG.PW.","5":"0000-00-00","member_since":"0000-00-00","6":"5","membership_level":"5","7":"","more_membership_levels":"","8":"active","account_state":"active","9":"2014-04-24 06:02:43","last_accessed":"2014-04-24 06:02:43","10":"202.164.42.227","last_accessed_from_ip":"202.164.42.227","11":"parveen@cqlsys.com","email":"parveen@cqlsys.com","12":"","phone":"","13":"","address_street":"","14":"","address_city":"","15":"","address_state":"","16":"","address_zipcode":"","17":"","home_page":"","18":"","country":"","19":"not specified","gender":"not specified","20":"","referrer":"","21":"","extra_info":"","22":"","reg_code":"","23":"2014-04-23","subscription_starts":"2014-04-23","24":"0","initial_membership_level":"0","25":"","txn_id":"","26":"123","subscr_id":"123","27":"techodata","company_name":"techodata","28":"0","flags":"0","29":"","notes":"","30":"","profile_image":"","31":"0000-00-00","expiry_1st":"0000-00-00","32":"0000-00-00","expiry_2nd":"0000-00-00","33":"not specified","title":"not specified"}}}

But when we try it in xcode and appery.io we get this:

{
  <strong>  "status":"404 Not Found",</strong>
    "url":"http://www.ivolleytech.com/api/login.php",
    "response":{
        "status":"3",
        "message":{
            "message":"Logged in Successfully",
            "data":{
                "0":"6707",
                "1":"parveen",
                "2":"parveen",
                "3":"kinger",
                "4":"$P$B8lnLoGAce9eJPyJX8RcIp4SAmG.PW.",
                "5":"0000-00-00",
                "6":"5",
                "7":"",
                "8":"active",
                "9":"2014-04-24 06:02:43",
                "10":"202.164.42.227",
                "11":"parveen@cqlsys.com",
                "12":"",
                "13":"",
                "14":"",
                "15":"",
                "16":"",
                "17":"",
                "18":"",
                "19":"not specified",
                "20":"",
                "21":"",
                "22":"",
                "23":"2014-04-23",
                "24":"0",
                "25":"",
                "26":"123",
                "27":"techodata",
                "28":"0",
                "29":"",
                "30":"",
                "31":"0000-00-00",
                "32":"0000-00-00",
                "33":"not specified",
                "member_id":"6707",
                "user_name":"parveen",
                "first_name":"parveen",
                "last_name":"kinger",
                "password":"$P$B8lnLoGAce9eJPyJX8RcIp4SAmG.PW.",
                "member_since":"0000-00-00",
                "membership_level":"5",
                "more_membership_levels":"",
                "account_state":"active",
                "last_accessed":"2014-04-24 06:02:43",
                "last_accessed_from_ip":"202.164.42.227",
                "email":"parveen@cqlsys.com",
                "phone":"",
                "address_street":"",
                "address_city":"",
                "address_state":"",
                "address_zipcode":"",
                "home_page":"",
                "country":"",
                "gender":"not specified",
                "referrer":"",
                "extra_info":"",
                "reg_code":"",
                "subscription_starts":"2014-04-23",
                "initial_membership_level":"0",
                "txn_id":"",
                "subscr_id":"123",
                "company_name":"techodata",
                "flags":"0",
                "notes":"",
                "profile_image":"",
                "expiry_1st":"0000-00-00",
                "expiry_2nd":"0000-00-00",
                "title":"not specified"
            }
        }
    }
}

Please help!

Thanks


Viewing all articles
Browse latest Browse all 8245

Trending Articles