C# SDK for REST

I've been working with the C# SDK (from the Libraries section on our REST site) as part of our transition to REST and I'm a little confused.

I want to GET CRM/Constituents/{constituentId}/Snapshot, but that doesn't seem to be supported in the SDK. Are not all resources supported? All I want to do is retrieve a constituent's mailing address.

Thanks

Parents
  • HI, Kathrin!

    I'm not sure what version you are currently on.  Here is an example of what you would do to access ConstituentSnapshot from the newer C# SDK available in 15.1.x:

        var credentials = new UserCredentials("Admin", "AllRight", "Machine", "password");
        var service = new TessituraServiceFacade("", 3, new TestLogger(), new TestTelemetry());
        service.SetBaseUrl("">localhost/.../");
        service.SetCredentials(credentials);
        var restResponse = await service.CRMFacade.Constituents.GetConstituentSnapshot(123);
        if (restResponse.IsSuccessful)
        {
            var constituentSnapshot = restResponse.ResponseObject;
        }
        else
        {
            Console.WriteLine(restResponse.ErrorMessages.ToString());
        }

    Every resource and functional category is contained within its own facade class, so you can just instantiate ConstituentsFacade directly.

    Hope this helps!

    -Ryan Creps

Reply
  • HI, Kathrin!

    I'm not sure what version you are currently on.  Here is an example of what you would do to access ConstituentSnapshot from the newer C# SDK available in 15.1.x:

        var credentials = new UserCredentials("Admin", "AllRight", "Machine", "password");
        var service = new TessituraServiceFacade("", 3, new TestLogger(), new TestTelemetry());
        service.SetBaseUrl("">localhost/.../");
        service.SetCredentials(credentials);
        var restResponse = await service.CRMFacade.Constituents.GetConstituentSnapshot(123);
        if (restResponse.IsSuccessful)
        {
            var constituentSnapshot = restResponse.ResponseObject;
        }
        else
        {
            Console.WriteLine(restResponse.ErrorMessages.ToString());
        }

    Every resource and functional category is contained within its own facade class, so you can just instantiate ConstituentsFacade directly.

    Hope this helps!

    -Ryan Creps

Children
No Data