Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data object is empty when calling getBrands using GroupsApi #178

Open
mrudling opened this issue May 28, 2020 · 1 comment
Open

data object is empty when calling getBrands using GroupsApi #178

mrudling opened this issue May 28, 2020 · 1 comment

Comments

@mrudling
Copy link

mrudling commented May 28, 2020

The data being returned from the API does not match the response in their docs when using the demo sandbox. This means the client api cannot deserialize the data object into a correct BrandsResponse. The data object is always an empty object. I was able to get the data I need (brand id) from the response object instead but this data is formatted incorrectly in the response.

Example response from the API (not using docusign-esign library, created using Postman. I am using ExternalId to get the brand id which is not ideal.

{
    "RecipientBrandIdDefault": null,
    "SenderBrandIdDefault": null,
    "BrandOptions": [
        {
            "BrandCompany": "brand-name",
            "ExternalId": "brand-id",

Looking at the API docs, I expect the response, and therefore the data object to look like this:

{
  "recipientBrandIdDefault": "sample string 1",
  "senderBrandIdDefault": "sample string 2",
  "brands": [
    {
      "brandCompany": "sample string 1",
      "brandId": "sample string 2",
      "brandName": "sample string 3",
@acooper4960
Copy link
Contributor

Hi @mrudling thank you for bringing this to our attention, well have our docs update for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants