WEBWebUserLoginAndRememberMe

 
 

WEBWebUserLoginAndRememberMe

Initial Build 2011.01
xWeb Web Method
Response Type object

 

The WEBWebUserLoginAndRememberMe web method can log in a Web User and also returns a Token that can be used for future logins.

Parameters

  • LoginOrEmail (string). User login or email. See WebLogin for more on xWeb User Names.
  • password (string).

Response

WebUserType. Will contain a <Individual.ind_token> that can be used for Single Sign On.

Sample Request

<<SAMPLE REQUEST>>

Sample Response

<<SAMPLE RESPONSE>>

 

JSON Method

Log a user in and retrieve the credentials. The response also contains the token for the customer record.

This method sets the token expiration to 100 years.

GET /xweb/JSON/WEBWebUserLoginAndRememberMe?LoginOrEmail=jwatts1980+Test1@gmail.com&password=Pa$$w0rd

POST /xweb/JSON/WEBWebUserLoginAndRememberMe

DATA: JSON
{
    "WEBWebUserLoginAndRememberMe": {
        "LoginOrEmail": "jwatts1980+Test1@gmail.com",
        "password": "Pa$$w0rd"
    }
}

 


SAMPLE RESULT
HTTP STATUS: 200
DATA - JSON
{
    "WebUserType": {
        "CurrentKey": "ec8ff4c0-f5a6-4812-b313-75dd5dba8fd1",
        "Individual": {
            "ind_cst_key": "ec8ff4c0-f5a6-4812-b313-75dd5dba8fd1",
            "ind_first_name": "JasonTest1",
            "ind_mid_name": "D",
            "ind_last_name": "WattsTest1",
            "ind_full_name_cp": "Mr. JasonTest1 D WattsTest1",
            "ind_token": "28cfb306-32a6-457d-a494-4d0dc2c0148a"
        },
        "Customer": {
            "cst_recno": "240656"
        },
        "Organization_XRef": null,
        "Organization": null,
        "Email": {
            "eml_address": "jwatts1980+Test1@gmail.com"
        },
        "Website": null,
        "Messaging": null,
        "Business_Address_XRef": null,
        "Business_Address": {
            "adr_city": "Houston",
            "adr_state": "TX",
            "adr_post_code": "77433",
            "adr_country": "UNITED STATES"
        },
        "Business_Address_State": null,
        "Business_Address_Country": null,
        "Business_Phone_XRef": null,
        "Business_Phone": null,
        "Business_Phone_Country": null,
        "Business_Fax_XRef": null,
        "Business_Fax": null,
        "Business_Fax_Country": null,
        "Home_Address_XRef": null,
        "Home_Address": {
            "ad2__adr_country": "UNITED STATES"
        },
        "Home_Address_State": null,
        "Home_Address_Country": null,
        "Home_Phone": null,
        "Home_Phone_Country": null,
        "Home_Phone_XRef": null,
        "Home_Fax": null,
        "Home_Fax_Country": null,
        "Home_Fax_XRef": null,
        "Address_Change_Log": null,
        "TransferToCustomer": null,
        "Individual_Custom_Demographics": null,
        "Social_Links": null,
        "source_code": null
    }
}

 

 

Was this article helpful?
0 out of 0 found this helpful