FxHubPartnersApi

<back to all web services

PostClientNotificationToHomeChannel

Requires Authentication
The following routes are available for this service:
All Verbs/channels/{Channel}/client
PostClientNotificationToHomeChannel Parameters:
NameParameterData TypeRequiredDescription
ChannelpathstringNo
MessagequerystringNo
ClientIdquerystringNo
ClientNotification Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
ChannelformstringNo
SentByUserIdformintNo
SentByUserNameformstringNo
SentDateformDateTime?No
SentTimeformstringNo
ReplyByUserIdformintNo
ReplyByUserNameformstringNo
ReplyDateformDateTime?No
ReplyTimeformstringNo
ClientNameformstringNo
MessageformstringNo
NotificationTypeformstringNo
HasRepliedformbool?No
ClientIdformint?No
SentToIdformintNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /channels/{Channel}/client HTTP/1.1 
Host: api.fxhub.co.za 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"channel":"String","message":"String","clientId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"id":0,"channel":"String","sentByUserId":0,"sentByUserName":"String","sentDate":"0001-01-01","sentTime":"String","replyByUserId":0,"replyByUserName":"String","replyDate":"0001-01-01","replyTime":"String","clientName":"String","message":"String","notificationType":"String","hasReplied":false,"clientId":0,"sentToId":0}