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
{{ message }}
This repository was archived by the owner on Dec 7, 2022. It is now read-only.
I initialized Client class by passing an api key in its constructor. var client = new Client(apikey);
Calling Client.SendAsync with a Message having a null or empty api key will return a BadRequest. If I do set the api key in the Message it works. Isn't the point of having the api key in the client to use that api key across all messages?
I'm thinking that instead of an api key per message it makes more sense to have it per Client instance. A message should focus on what it is - a message and not concern itself with the api key. What do you think?