Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

http post kullanılarak login olabilirsiniz. Login başarılı olursa sessionid üretilecektir. Daha sonraki işlemler için bu id'yi kullanacaksınız.


Warning

1.49 sürümünden itibaren Login'de kullanılan paramertreler base64Encoded olarak POST edilerek kullanılacaktır.


1.49 Versiyonu Sonrası Login

Parametreler base64Encoded olarak "authorization" query name ile POST edilir: 

Code Block
languagexml
titlePOST
http://localhost/LogoCRMRest/api/v1.0/login?authorization=TE9HTzpMb2dvKyZMb2dvOnRydWU6dHI6ZmFsc2U=


Example Authorization (Base64 encode için : https://www.base64decode.org/)

  •  Basic BASE64Encode(LOGO:Logo)
  •  Basic BASE64Encode(LOGO:Logo:true)
  •  Basic BASE64Encode(LOGO:Logo:true:tr)
  •  Basic BASE64Encode(LOGO:Logo:true:tr:false) 

1.49 Versiyonu Öncesi Login  

Code Block
languagexml
titlePOST
linenumberstrue
collapsetrue
Örnek1 : logoCrmRestServer/api/v1.0/login?username=LOGO&password=LOGO
Örnek2 : http://localhost/LogoCrmRest/api/v1.0/login?username=LOGO
Örnek3 : http://localhost/LogoCRMRest/api/v1.0/login?userName=LOGO&passWord=Logo&allowImages=true&language=tr&isDetailedLogin=false
Code Block
languagexml
titleLogin Response (Dikkat "SessionId": "fff63884-ffe6-41e4-b15f-e77f9648720d")
linenumberstrue
collapsetrue
{
    "Meta": null,
    "Result": 1,
    "Message": "",
    "SessionId": "fff63884-ffe6-41e4-b15f-e77f9648720d",
    "WarningMessage": null,
    "User": "83d88925-e89c-498e-a8d0-f59d91fb1baa",
    "Integration_Connected": true,
    "Integration_SetOid": "",
    "Integration_ApplicationType": -1,
    "Integration_ApplicationName": "",
    "Integration_FirmNumber": "",
    "Integration_Description": "",
    "Integration_BranchCode": "",
    "Integration_BranchName": "",
    "IsUserAdmin": true,
    "RESTApiVersion": "1.42",
    "ClearDescribe": false,
    "AccessRights": [],
    "SalesRepRights": [],
    "NavigationMenuNames": {
        "MT_Shares": ""
    },
    "NavigationItems": [],
    "XMLSettings": {
        "flag_DontUseDistanceWhenCheckIn": "0"
    }
}

...