public UpdatePass ( string passId, string>.Dictionary |
||
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 |
Результат |
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); }
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); }