Calendar API Push Notifications

Introduction

Please refer to this documentation to properly install and use our Push Notifications.

Methods

Subscribe to Calendar Notification:

<script>
push.calendarSubscribe(yourFunctionCallback);
var yourFunctionCallback = function(data){ console.log(data); };
</script>


.NET Client (C#)

Methods

Subscribe to Calendar Notification:

Message format:

            public class EventDateUpdatedDTO
            {
                public Guid EventDateId { get; set; }
                public decimal? Actual { get; set; }
                public decimal? Revised { get; set; }
                public bool? IsBetter { get; set; }
                public double? Milliseconds { get; set; }
            }

            public class EventDateDeletedDTO
            {
                public Guid EventDateId { get; set; }
            }
        

Code example:

        var token = getTokenApi();
        var queryStringToken = string.Format("?access_token={0}", token.AccessToken);
        var hubConnection = new HubConnection("https://httppush.fxstreet.com/", queryStringToken);
        var hubProxy = hubConnection.CreateHubProxy("CalendarHub");
        hubProxy.On("updatedValues", data =>
        {
            var eventDateUpdated = data;
        });
        hubProxy.On("deletedValues", data =>
        {
            Guid eventDateIdDeleted = data.EventDateId;
        });
        hubConnection.Start();