EngageReaderHolidayItem

EngageReaderHolidayItem is used to describe the holidays stored on the Engage Reader

EngageReaderHolidayItem Properties

EngageReaderHolidayItem

Field Type Inherited from Description
Action AutoUnlockActions EngageReaderHolidayItem Gets or sets the Action value
EndingDate DateTime EngageReaderHolidayItem Gets or sets the EndingDate value
StartingDate DateTime EngageReaderHolidayItem Gets or sets the StartingDate value

JSON Structure of EngageReaderHolidayItem

{
   "Action"	:	"[AutoUnlockActions](/object-model/autounlockactions)",
   "EndingDate"	:	"DateTime",
   "StartingDate"	:	"DateTime"
}

Delete Engage Reader Holiday Async

Example in C#

// Returns: nothing
await client.DeleteEngageReaderHolidayAsync(EngageReaderInfo reader, Int32 index);

Example in CURL



           curl -X DELETE \
               https://keepapi.feenicshosting.com/api/f/INSTANCE.KEY/engagereaders/ENGAGEREADER.KEY/readerholidays/1 \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' 
            

Update Engage Reader Holiday Async

Example in C#

// Returns: EngageReaderInfo
var engageReaderInfo = await client.UpdateEngageReaderHolidayAsync(EngageReaderInfo reader, Int32 index, EngageReaderHolidayItem holidayItem);

Example in CURL



           curl -X PUT \
               https://keepapi.feenicshosting.com/api/f/INSTANCE.KEY/engagereaders/ENGAGEREADER.KEY/readerholidays/1 \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                   "$type":"Feenics.Keep.WebApi.Model.EngageReaderHolidayItem, Feenics.Keep.WebApi.Model",
                   "StartingDate":"0001-01-01T00:00:00",
                   "EndingDate":"0001-01-01T00:00:00",
                   "Action":0
               }'