lib/mailersend/tokens/tokens.rb in mailersend-ruby-0.1.6 vs lib/mailersend/tokens/tokens.rb in mailersend-ruby-0.1.7

- old
+ new

@@ -15,13 +15,14 @@ @scopes = [] @token_id = {} @status = {} end - def create(name:, scopes:) + def create(name:, scopes:, domain_id:) json = { "name" => name, - "scopes" => scopes + "scopes" => scopes, + "domain_id" => scopes } response = client.http.post("#{API_URL}/token", json: json) puts response end