Skip to content

Concurrency of key #75

Open
Open
@AssCasc

Description

@AssCasc

According to the getting started, api-key and pertner-key must be stored in "Configuration.Default.ApiKey" dictionary; in this way the kays are shared to all library.
In my case i need use the library in large shared service with hundreds of Brevo connections. You will understand that I cannot use shared keys throughout the library but each connection requires its own keys. I need something like that:

using System;
using System.Diagnostics;
using sib_api_v3_sdk.Api;
using sib_api_v3_sdk.Client;
using sib_api_v3_sdk.Model;

namespace Example
{
    public class Example
    {
        public void main()
        {

              var apiInstance = new AccountApi(api-key, partner-key);

            try
            {
                // Get your account information, plan and credits details
                GetAccount result = apiInstance.GetAccount();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AccountApi.GetAccount: " + e.Message );
            }

        }
    }
}

Is this possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions