Ejemplo n.º 1
0
    public static void Main(String[] args)
    {
        var apiCredential = new ApiCredential(API_USER_NAME, API_PASSWORD, API_KEY);
        var clientKeys = new ClientKeys(@"c:\work\abenity\private.pem", @"c:\work\abenity\public.pem");

        var abenityApi = new AbenityApi(apiCredential, clientKeys);
        abenityApi.PostSsoMember(new SsoMemberPayload()
        {
            Address = "67 Bianco",
            City = "Irvine",
            ClientUserId = "7",
            Country = "US",
            Email = "*****@*****.**",
            FirstName = "Ryan",
            LastName = "Meyer",
            SendWelcomeEmail = true,
            State = "CA",
            Zip = "92618"
        });
    }
Ejemplo n.º 2
0
    public static void Main(String[] args)
    {
        var apiCredential = new ApiCredential(API_USER_NAME, API_PASSWORD, API_KEY);
        var clientKeys = new ClientKeys(@"path-to-client-private-key.pem", @"path-to-abenity-public-key.pem");

        var abenityApi = new AbenityApi(apiCredential, clientKeys);
        abenityApi.PostSsoMember(new SsoMemberPayload()
        {
            Address = "1 Main St.",
            City = "Nashville",
            ClientUserId = "1",
            Country = "US",
            Email = "*****@*****.**",
            FirstName = "Jane",
            LastName = "Doe",
            SendWelcomeEmail = true,
            State = "TN",
            Zip = "37201"
        });
    }