UpdatePass() публичный Метод

Updates the fields for pass identified by 'passId'. 'passId' is unique, so method will update one pass. More info
public UpdatePass ( string passId, string>.Dictionary fields, bool push = true ) : PassKitResponse
passId string The unique pass id
fields string>.Dictionary A dictionary of field-names and their values
push bool Indicates if the update should be pushed to all devices with an active pass
Результат PassKitResponse
Пример #1
0
        public void updatePassPassId()
        {
            // Create Dictionary with pass fields
            Dictionary<string, string> fields = new Dictionary<string, string>();
            fields["Balance"] = "2";

            PassKit pk = new PassKit(apiAccount, apiSecret);
            PassKitResponse result = pk.UpdatePass("JCecLhBk9mmC", fields);
        }
Пример #2
0
        public void updatePassTemplateSerial()
        {
            // Create Dictionary with pass fields
            Dictionary<string, string> fields = new Dictionary<string, string>();
            fields["Balance"] = "5";

            PassKit pk = new PassKit(apiAccount, apiSecret);
            PassKitResponse result = pk.UpdatePass("Lesson package", "4756935660433049", fields);
        }