Post Push Service

 

Transactional (Tekil) Push Web Servis Metodları

Not: URL olarak HTTPS kullanabilirsiniz.

Transactional (Tekil) Push web servisini kullanarak, şifre hatırlatma, üyelik aktivasyonu, siparişiniz kargoda, gibi bilgilendirme amaçlı Push mesajları gönderebilir ve analiz için bunların sonuçlarını çekebilirsiniz.

Aşağıdaki tabloda Transactional Push Web Servisine ait metodlar ve kısa açıklamaları listelenmektedir. Detaylı bilgi için metod isimlerine tıklayabilirsiniz.


Geliştiricinin herhangi bir web servis ile etkileşime geçebilmesi için, öncelikle Login metodunu kullanarak bir SERVICE TICKET alması gerekir. Diğer web servis ve metodlarına yaratmış olduğu bu değer ile istekte bulunabilir.

Dakikada gönderilebilecek en fazla istek sayısı 1000'dir.


Metod

Açıklama

GetPostPushResult

Gönderilmiş transactional push bildirimlerinin güncel durumlarını raporlar.

GetPostPushResultByCreationDate

Gönderilmiş transactional push bildirimlerinin güncel durumlarını, oluşturulma tarihlerine göre raporlar.

GetPostPushResultByLastUpdate

Gönderilmiş transactional push bildirimlerinin güncel durumlarını, son güncellemelere göre raporlar.

PostTransactionalPush

Member key değerine göre üyelere transactional push bildirim göndermek için kullanılır.

PostTransactionalPushWithToken

Token ID değerine göre üyelere transactional push bildirim göndermek için kullanılır.

PostTransactionalPushWithLastUsedKnownTokenOnlySon kullanılan token değerine göre üyelere transactional push bildirim göndermek için kullanılır.
PostTransactionalWebPushMember key değerine göre üyelere transactional web push bildirim göndermek için kullanılır.
PostTransactionalWebPushWithTokenToken ID değerine göre üyelere transactional web push bildirim göndermek için kullanılır.


GetPostPushResultByCreationDate 

Back to Top ^ 

URL

LIVE: https://api.relateddigital.com/resta/api/PostPush/GetPostPushResultByCreationDate?BeginDate=2016-11-03 16:00:00&EndDate=2016-11-04 16:00:00&Page=1

ECOMM: https://api.relateddigital.com/reste/api/PostPush/GetPostPushResultByCreationDate?BeginDate=2016-11-03 16:00:00&EndDate=2016-11-04 16:00:00&Page=1

LIVEB: https://api.relateddigital.com/liveb_rest/api/PostPush/GetPostPushResultByCreationDate?BeginDate=2016-11-03 16:00:00&EndDate=2016-11-04 16:00:00&Page=1

LIVEM: https://api.relateddigital.com/restm/api/PostPush/GetPostPushResultByCreationDate?BeginDate=2016-11-03 16:00:00&EndDate=2016-11-04 16:00:00&Page=1

Http verb

GET

Parameters

BeginDate(string): "yyyy-MM-dd HH:mm:ss"

EndDate(string) :"yyyy-MM-dd HH:mm:ss"

Page(int):

Header

Content-Type: application/json

Authorization: The ticket given by the system after successfull login

Body

 

Sample Body


Sample Response

{
"PostPushResult": [
{
"PushId": "384430a5-113f-4d61-8f9e-d404f22748e8",
"EmpushToken": "1d9106ca5928a6f6dd0632d7f32dbe2369987ea18ff9a18a43fb1eb10ad1cccc",
"AppAlias": "zerrinsitedeneme",
"PushType": "T",
"TextMessage": "PostPush test data",
"TargetUrl": "http://relateddigital.com/a.gif",
"MediaUrl": "http://relateddigital.com/a.gif",
"Status": "R",
"Created": "2016-11-03T17:07:16.423",
"TakenForSent": "2016-11-21T12:08:41.73",
"DsLastChange": "2016-11-21T12:08:45.383",
"OpenTime": null
},
{
"PushId": "384430a5-113f-4d61-8f9e-d404f22748e8",
"EmpushToken": "1d9106ca5928a6f6dd0632d7f32dbe2369987ea18ff9a18a43fb1eb10ad1cccc",
"AppAlias": "zerrinsitedeneme",
"PushType": "T",
"TextMessage": "PostPush test data",
"TargetUrl": "http://relateddigital.com/a.gif",
"MediaUrl": "http://relateddigital.com/a.gif",
"Status": "R",
"Created": "2016-11-03T17:07:16.423",
"TakenForSent": "2016-11-21T12:08:41.73",
"DsLastChange": "2016-11-21T12:08:45.383",
"OpenTime": null
}

],

"Success": true,
"Errors": [],
"DetailedMessage": "",
"TransactionId": "C5BE230176BF48F6A999DEAB2262B6DA"
}

Successs Response

Status Code: 200

Http Error Response

Status Code: 400 Bad Request

Status Code: 401 Unauthorized

Status Code: 404 Not Found

Error Code






GetPostPushResultByLastUpdate 

Back to Top ^ 

URL

LIVE: https://api.relateddigital.com/resta/api/PostPush/GetPostPushResultByLastUpdate?BeginDate=2016-11-20 18:00:00&EndDate=2016-11-21 18:00:00&Page=1

ECOMM: https://api.relateddigital.com/reste/api/PostPush/GetPostPushResultByLastUpdate?BeginDate=2016-11-20 18:00:00&EndDate=2016-11-21 18:00:00&Page=1

LIVEB: https://api.relateddigital.com/liveb_rest/api/PostPush/GetPostPushResultByLastUpdate?BeginDate=2016-11-20 18:00:00&EndDate=2016-11-21 18:00:00&Page=1

LIVEM: https://api.relateddigital.com/restm/api/PostPush/GetPostPushResultByLastUpdate?BeginDate=2016-11-20 18:00:00&EndDate=2016-11-21 18:00:00&Page=1

Http verb

GET

Parameters

BeginDate(string): "yyyy-MM-dd HH:mm:ss"

EndDate(string) :"yyyy-MM-dd HH:mm:ss"

Page(int):

Header

Content-Type: application/json

Authorization: The ticket given by the system after successfull login

Body

 

Sample Body


Sample Response

{
"PostPushResult": [
{
"PushId": "384430a5-113f-4d61-8f9e-d404f22748e8",
"EmpushToken": "1d9106ca5928a6f6dd0632d7f32dbe2369987ea18ff9a18a43fb1eb10ad1cccc",
"AppAlias": "zerrinsitedeneme",
"PushType": "T",
"TextMessage": "PostPush test data",
"TargetUrl": "http://relateddigital.com/a.gif",
"MediaUrl": "http://relateddigital.com/a.gif",
"Status": "R",
"Created": "2016-11-03T17:07:16.423",
"TakenForSent": "2016-11-21T12:08:41.73",
"DsLastChange": "2016-11-21T12:08:45.383",
"OpenTime": null
},
{
"PushId": "384430a5-113f-4d61-8f9e-d404f22748e8",
"EmpushToken": "1d9106ca5928a6f6dd0632d7f32dbe2369987ea18ff9a18a43fb1eb10ad1cccc",
"AppAlias": "zerrinsitedeneme",
"PushType": "T",
"TextMessage": "PostPush test data",
"TargetUrl": "http://relateddigital.com/a.gif",
"MediaUrl": "http://relateddigital.com/a.gif",
"Status": "R",
"Created": "2016-11-03T17:07:16.423",
"TakenForSent": "2016-11-21T12:08:41.73",
"DsLastChange": "2016-11-21T12:08:45.383",
"OpenTime": null
}

],

"Success": true,
"Errors": [],
"DetailedMessage": "",
"TransactionId": "C5BE230176BF48F6A999DEAB2262B6DA"
}

Successs Response

Status Code: 200

Http Error Response

Status Code: 400 Bad Request

Status Code: 401 Unauthorized

Status Code: 404 Not Found

Error Code



GetPostPushResult 

Back to Top ^ 

URL

LIVE: https://api.relateddigital.com/resta/api/PostPush/GetPostPushResult

ECOMM: https://api.relateddigital.com/reste/api/PostPush/GetPostPushResult

LIVEB: https://api.relateddigital.com/liveb_rest/api/PostPush/GetPostPushResult

LIVEM: https://api.relateddigital.com/restm/api/PostPush/GetPostPushResult

Http verb

POST

Parameters


Header

Content-Type: application/json

Authorization: The ticket given by the system after successfull login

Body

PushIds(Guid[]):

Sample Body

{
"PushIds" : ["384430A5-113F-4D61-8F9E-D404F22748E8", "808AE83A-2ECF-4F7D-92FD-E7509FA69D24"]
}

Sample Response

{
"PostPushResult": [
{
"PushId": "384430a5-113f-4d61-8f9e-d404f22748e8",
"EmpushToken": "1d9106ca5928a6f6dd0632d7f32dbe2369987ea18ff9a18a43fb1eb10ad1cccc",
"AppAlias": "zerrinsitedeneme",
"PushType": "T",
"TextMessage": "PostPush test data",
"TargetUrl": "http://relateddigital.com/a.gif",
"MediaUrl": "http://relateddigital.com/a.gif",
"Status": "R",
"Created": "2016-11-03T17:07:16.423",
"TakenForSent": "2016-11-21T12:08:41.73",
"DsLastChange": "2016-11-21T12:08:45.383",
"OpenTime": null
},
{
"PushId": "808ae83a-2ecf-4f7d-92fd-e7509fa69d24",
"EmpushToken": "APA91bFrWeHjIJfXyjnQOepOBG-4qoUCzM_6rVeAZI5M-P1r-EH4BcSumggAvdFUjXlYljSfhR_8rZ9np86P-FfTonhvJqx292ueLWZnN2ycs5YvrBhjLFMG_US8QfuoCvF9aec40POU",
"AppAlias": "zerrinsitedeneme",
"PushType": "T",
"TextMessage": "PostTransactionalPushWithToken test data",
"TargetUrl": "http://relateddigital.com/a.gif",
"MediaUrl": "http://relateddigital.com/a.gif",
"Status": "T",
"Created": "2016-11-03T17:49:22.157",
"TakenForSent": "2016-11-21T12:08:46.427",
"DsLastChange": null,
"OpenTime": null
}

],

"Success": true,
"Errors": [],
"DetailedMessage": "",
"TransactionId": "C5BE230176BF48F6A999DEAB2262B6DA"
}

Successs Response

Status Code: 200

Http Error Response

Status Code: 400 Bad Request

Status Code: 401 Unauthorized

Status Code: 404 Not Found

Error Code



PostTransactionalPush 

Back to Top ^  

URL

LIVE: https://api.relateddigital.com/resta/api/PostPush/PostTransactionalPush

ECOMM: https://api.relateddigital.com/reste/api/PostPush/PostTransactionalPush

LIVEB: https://api.relateddigital.com/liveb_rest/api/PostPush/PostTransactionalPush

LIVEM: https://api.relateddigital.com/restm/api/PostPush/PostTransactionalPush

Http verb

POST

Parameters


Header

Content-Type: application/json

Authorization: The ticket given by the system after successfull login

Body


Sample Body

{
"ApplicationAlias": "euroAndroid",
"ClassificationName": "",
"MemberKey": "KEY_ID or EMAIL",
"MemberValue": "key or email value",
"PushMessage": {
"TargetUrl": "https://www.relateddigital.com",

"Title

"Text": "Naber",
"Type": 2
}
}


Sample Response

{
"PushList": [
{
"PushId": "efbdd937-1daf-4506-879f-2a6f79f75b1d"
}
],
"Success": true,
"Errors": [],
"DetailedMessage": "",
"TransactionId": "4E534D17BC4149F9ABFF608D317984D4"
}


Successs Response

Status Code: 200

Http Error Response

Status Code: 400 Bad Request

Status Code: 401 Unauthorized

Status Code: 404 Not Found

Error Code




PostTransactionalPushWithToken 

Back to Top ^ 

URL

LIVE: https://api.relateddigital.com/resta/api/PostPush/PostTransactionalPushWithToken

ECOMM: https://api.relateddigital.com/reste/api/PostPush/PostTransactionalPushWithToken

LIVEB: https://api.relateddigital.com/liveb_rest/api/PostPush/PostTransactionalPushWithToken

LIVEM: https://api.relateddigital.com/restm/api/PostPush/PostTransactionalPushWithToken

Http verb

POST

Parameters


Header

Content-Type: application/json

Authorization: The ticket given by the system after successfull login

Body

BrowserType(string): BrowserType: (Tarayıcı türü. C: Chrome, F: Firefox etc.)

Auth(string): Token auth değeri

P256DH(string): Token p256 değeri

(Yukarıdaki alanlar daha önce SDK'mız aracılığıyla bize gönderilen tokenlar için opsiyonel, fakat ilgili token SDK ile bize gönderilmemiş ise zorunludur.)

Sample Body

{
    "ApplicationAlias": "RMC_Demo_Store",
    "ClassificationName": "test",
    "AuthToken": "fEqZyrgJeP0:APA91bGiJIHNAfOhbtM7aKNOQ-EWvpeDZjMq52LCEXkIThBBvGHFPFAfQNtXm0UZW2wcVMQQr4W1EHTB9nxFjUmfkv3SbMoWzZtWp5MmVzlCGVLI866fj6RrQ2T1wmZJZZkqWjK1263L",
    "BrowserType": "C",
    "Auth": "XDRvaaBUa3Z93Tav5phqFA",
    "P256DH": "BHmU2Oj2l5gvQzli68jD4WoW33er_u-dh0fz0QECGCgvzPa9aBAQ7YDKpzEvn0eyDcVIaNkpBk_J6D9Y59U3bK0",
    "PushMessage": {
        "Title": "Sample Push Title",
        "Text": "Sample Push Message",
        "TargetUrl": "https://store.therelated.com/",
        "Type": 2
    }
}

Sample Response

{
"PushList": [
{
"PushId": "300077d6-441b-46cd-9229-6cc4548eb7d2"
}
],
"Success": true,
"Errors": [],
"DetailedMessage": "",
"TransactionId": "E9E73E2731FD462B90131B29359EF87B"
}

Successs Response

Status Code: 200

Http Error Response

Status Code: 400 Bad Request

Status Code: 401 Unauthorized

Status Code: 404 Not Found

Error Code



PostTransactionalPushWithLastUsedKnownTokenOnly 

Back to Top ^ 

URL

LIVE: https://api.relateddigital.com/resta/api/PostPush/PostTransactionalPushWithLastUsedKnownTokenOnly

ECOMM: https://api.relateddigital.com/reste/api/PostPush/PostTransactionalPushWithLastUsedKnownTokenOnly

LIVEB: https://api.relateddigital.com/liveb_rest/api/PostPush/PostTransactionalPushWithLastUsedKnownTokenOnly

LIVEM: https://api.relateddigital.com/restm/api/PostPush/PostTransactionalPushWithLastUsedKnownTokenOnly

Http verb

POST

Parameters


Header

Content-Type: application/json

Authorization: The ticket given by the system after successfull login

Body


Sample Body

{
"ApplicationAlias": "euroAndroid",
"ClassificationName": "",
"MemberKey": "KEY_ID or EMAIL",
"MemberValue": "key or email value",
"PushMessage": {

"Title": "Sample Push Title",
"TargetUrl": "https://www.euromsg.com/tr",
"Text": "Sample Push Message",
"Type": 2,
"IsMutableContent":true
}
}

Sample Response

{
"PushList": [
{
"PushId": "4a5129dc-ca12-4cb2-b987-aaa70cf947ff"
}
],
"Success": true,
"Errors": [],
"DetailedMessage": "",
"TransactionId": "4D70A79E2D0B412FB4283AC167CAE7C1"
}

Successs Response

Status Code: 200

Http Error Response

Status Code: 400 Bad Request

Status Code: 401 Unauthorized

Status Code: 404 Not Found

Error Code





PostTransactionalWebPush 

Back to Top ^ 

URL

LIVE: https://api.relateddigital.com/resta/api/postpush/PostTransactionalWebPush

ECOMM: https://api.relateddigital.com/reste/api/postpush/PostTransactionalWebPush

LIVEB: https://api.relateddigital.com/liveb_rest/api/postpush/PostTransactionalWebPush

LIVEM: https://api.relateddigital.com/restm/api/postpush/PostTransactionalWebPush

Http verb

POST

Parameters


Header

Content-Type: application/json

Authorization: The ticket given by the system after successfull login

Body


Sample Body

{
"ApplicationAlias": "NewEuromsgWebPushTest",
"ClassificationName": "test_clsf",
"MemberKey"; "string" ;
"MemberValue"; "string" ;
"PushMessage": {
"Title": "Sample Push Title",
"Text": "Sample Push Message",
"MediaUrl": "https://www.euromsg.com/tr/abc.jpg",
"TargetUrl": "https://www.euromsg.com/tr/abc.jpg",
"Type": 2
}
}

Sample Response

{
"PushList": [
{
"PushId": "4a5129dc-ca12-4cb2-b987-aaa70cf947ff"
}
],
"Success": true,
"Errors": [],
"DetailedMessage": "",
"TransactionId": "4D70A79E2D0B412FB4283AC167CAE7C1"
}

Successs Response

Status Code: 200

Http Error Response

Status Code: 400 Bad Request

Status Code: 401 Unauthorized

Status Code: 404 Not Found

Error Code

PostTransactionalWebPushWithToken 

Back to Top ^ 

URL

LIVE: https://api.relateddigital.com/resta/api/postpush/PostTransactionalWebPushWithToken

ECOMM: https://api.relateddigital.com/reste/api/postpush/PostTransactionalWebPushWithToken

LIVEB: https://api.relateddigital.com/liveb_rest/api/postpush/PostTransactionalWebPushWithToken

LIVEM: https://api.relateddigital.com/restm/api/postpush/PostTransactionalWebPushWithToken

Http verb

POST

Parameters


Header

Content-Type: application/json

Authorization: The ticket given by the system after successfull login

Body


Sample Body

{
"ApplicationAlias": "NewEuromsgWebPushTest",
"ClassificationName": "test_clsf",
"AuthToken": "c0NLG6xbeqs:APA91bFq9JRzP7mi8L77aRZUUa3MtwkUVQLEhI6NUc3gRFtlV_e8rK8DHje-NqAgDCl_eEViWUwuVlTFB9HCkfVCQST_L8IAbSaqQJHzeoMHG-eyVaf64VXMEvg3U-Sb9kemxxNPtSK-",
"PushMessage": {
"Title": "Sample Push Title",
"Text": "Sample Push Message",
"MediaUrl": "https://www.euromsg.com/tr/abc.jpg",
"TargetUrl": "https://www.euromsg.com/tr/abc.jpg",
"Type": 2
}
}

Sample Response

{
"WebPushList": [
{
"PushId": "f1a46709-786c-4554-bf29-5d728c3f55ce"
}
],
"Success": true,
"Errors": [],
"DetailedMessage": "",
"TransactionId": "F7F80DAB840C4885AF5A479A81068654"
}

Successs Response

Status Code: 200

Http Error Response

Status Code: 400 Bad Request

Status Code: 401 Unauthorized

Status Code: 404 Not Found

Error Code



Ana Sayfa: RMC REST API

Copyright 2020 Related Digital