Page History
...
Aşağıdaki adımları takip ederek bir Logo CRM REST istemcisi oluşturabilirsiniz. Buradaki örnekler için Postman ya da başka bir istemci kullanılabilir.
Warning |
---|
Logo CRM REST uygulamasının Veritabanı bağlantı bilgileri uygulama dizinindeki web.config de tutulur. ConfigurationString'in Logo CRM ile aynı olmasına dikkat ediniz. |
Logo REST Sunucusu
Info |
---|
Login (POST)
Warning |
---|
IIS 10.0 Detailed Error - 404.0 - Not Found şeklinde bir hata alırsanır. URL'i kontrol ediniz. |
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
logoCrmRestServer/api/v1.0/login?username=LOGO&password=LOGO
localhost/api/v1.0/login?username=LOGO |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ "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" } } |
Firma Listesi Alma (GET)
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
http://localhost/LogoCrmRest//api/v1.0/firms?SessionId=fff63884-ffe6-41e4-b15f-e77f9648720d |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{
"Meta": {
"href": "localhost/LogoCrmRest/api",
"mediaType": "application/json; charset=UTF-8",
"fullPath": "/LogoCrmRest/api/v1.0/firms",
"apiVersion": "1"
},
"Result": 1,
"Message": "",
"Items": [
{
"Oid": "25284038-b655-4bd9-ae00-e0c95d07390d",
"FirmCode": "00000001",
"FirmTitle": "logo",
"InUse": true,
"IsPersonCompany": true,
"PersonId": null,
"TaxOffice": null,
"TaxNo": null,
"EmailAddress1": null,
"EmailAddress2": null,
"EmailAddress3": null,
"WebAddress1": null,
"WebAddress2": null,
"Latitude": 0,
"Longtitude": 0,
"Notes": null,
"Tags": null,
"NotifyUsers": null,
"PhotoBase64": "iVBORw0KGgoAAAANSUhEUgAAAHg.....
"_CreatedDateTime": "2017-12-05T15:47:24.533",
"_LastModifiedDateTime": "2017-12-05T15:47:24.537",
"RecordCreateInfo": "System Administrator, 05.12.2017 15:47",
"RecordLastUpdateInfo": "System Administrator, 05.12.2017 15:47"
},
{
"Oid": "519fcb53-6d8d-4e8f-8ee1-b42844e46250",
"FirmCode": "00000003",
"FirmTitle": "logo elektronik",
"InUse": true,
"IsPersonCompany": false,
"PersonId": null,
"TaxOffice": null,
"TaxNo": null,
"EmailAddress1": null,
"EmailAddress2": null,
"EmailAddress3": null,
"WebAddress1": null,
"WebAddress2": null,
"Latitude": 0,
"Longtitude": 0,
"Notes": null,
"Tags": null,
"NotifyUsers": null,
"PhotoBase64": "iVBORw0KGgoAAAA....
"_CreatedDateTime": "2017-12-05T15:47:50.07",
"_LastModifiedDateTime": "2017-12-05T15:47:50.07",
"RecordCreateInfo": "System Administrator, 05.12.2017 15:47",
"RecordLastUpdateInfo": "System Administrator, 05.12.2017 15:47"
}
]
} |
Firma Ekleme (POST)
Firma ya da başka bir iş nesnesi GET ile alındıktan sonra ilgili alanları doldurulup gönderilerek POST yapılabilir.
"Oid" sistem tarafından otomatik olarak oluşturulmaktadır. Aşağıdaki gibi bir tanım ile firma eklenebilir.
Code Block |
---|
http://localhost/LogoCrmRest//api/v1.0/firms?SessionId=fff63884-ffe6-41e4-b15f-e77f9648720d |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{
"FirmCode": "00000004",
"FirmTitle": "REST Firm",
"InUse": true,
"IsPersonCompany": true,
"PersonId": null,
"TaxOffice": null,
"TaxNo": null,
"EmailAddress1": null,
"EmailAddress2": null,
"EmailAddress3": null,
"WebAddress1": null,
"WebAddress2": null,
"Latitude": 0,
"Longtitude": 0,
"Notes": null,
"Tags": null,
"NotifyUsers": null,
"PhotoBase64": "iVBORw0KGgoAAA...",
"_CreatedDateTime": "2017-12-05T15:47:24.533",
"_LastModifiedDateTime": "2017-12-05T15:47:24.537",
"RecordCreateInfo": "System Administrator, 05.12.2017 15:47",
"RecordLastUpdateInfo": "System Administrator, 05.12.2017 15:47"
} |
Destek Maddesi Ekleme (POST)
Veri deseni için öncelikle tickets lar örnek olarak alınabilir. Sonrasında ilgili kayıt oluşturulup sessionid ile POST etmek yeterli olacaktır.