There should be an easy way for the user to get an API that has the first argument AccessToken applied. For example the following could return whole API with AccessToken partially applied to each action:
The returned API function names should have aliases that drop the device prefix given that it is redundant in this chaining context. So for example these two would be the same:
The following sketches the core necessary actions and their types.
Sugar for
AccessToken
There should be an easy way for the user to get an API that has the first argument
AccessToken
applied. For example the following could return whole API withAccessToken
partially applied to each action:Sugar for
DeviceID
There should be an easy way for the user to get an API to work with a specific
device
wherein the second argumentDeviceID
is applied. For example:The returned API function names should have aliases that drop the
device
prefix given that it is redundant in this chaining context. So for example these two would be the same: