Coinbase.API.Users
SourceSummary↑
create(coinbase, user, optionals \\ %{}) | Create a new user (This API does not exist in current coinbase API reference. Might not work. Not included in tests.) |
get_current(coinbase) | Gets the current user |
update(coinbase, id, user) | Updates the current user |
Functions
Specs:
- create(pid, %{}, %{}) :: Coinbase.response
Create a new user (This API does not exist in current coinbase API reference. Might not work. Not included in tests.)
NOTE: Coinbase will error if you pass it additional uncessary fields so mark them as :undefined in the object or create a new object with only those fields
Optional params: user[referrer_id] (string): Optional id of the user to get a referral credit in the case that this transaction makes the user eligible. The referring user is eligible for a credit if the address in the ‘to’ field is an email address for which there is currently no registered account and the recipient proceeds to buy or sell at least $100 worth of bitcoin. client_id (string): Optional client_id of your OAuth2 api application. When this is provided your application will automatically be granted the ‘merchant’ OAuth2 permission for this user. See more information scopes (string): Optional list of authorization scopes your app will obtain for this user, separated by space.
Specs:
- get_current(pid) :: Coinbase.response
Gets the current user
Specs:
- update(pid, binary, %{}) :: Coinbase.response
Updates the current user