You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
request will fail, because omitempty tag in struct treat false as empty field, and omit it from request
Furthermore, data field in response of this endpoint is a single object, not array, which results in unmarshalling error, making UpdatePreferences method completely useless in current package version
The text was updated successfully, but these errors were encountered:
According to API Reference for
UpdatePreferences
method,channel
field should be object, not arrayMoreover, this endpoint supports partial update, which means that only
enabled
or onlychannel
may be setBut if we set only
enabled
, and set it tofalse
as follow:request will fail, because
omitempty
tag in struct treatfalse
as empty field, and omit it from requestFurthermore,
data
field in response of this endpoint is a single object, not array, which results in unmarshalling error, makingUpdatePreferences
method completely useless in current package versionThe text was updated successfully, but these errors were encountered: