Need feedback what is the correct format of creating a grant via using C# .NET SDK

Comments

5 comments

  • Andreas Garnæs

    Hi Antonio,

    Please see this page for a description of contact identifiers (scroll down a bit): https://developers.podio.com/index/api

    Hope it helps!

    Best,
    Andreas

    0
    Comment actions Permalink
  • Antonio G Garcia

    I understand the api page but wanted if possible assist how to do it via the .net sdk. Their no documentation about this.

    0
    Comment actions Permalink
  • Andreas Garnæs

    Instantiate a Ref with type "email" and id as the email of the user in question. Put this ref in a list and pass it to GrantService.CreateGrant:

    podio.GrantService.CreateGant("item", itemId, listOfRefs, "edit", "Some message")

    0
    Comment actions Permalink
  • Antonio G Garcia

    Got it thank a lot Andreas will try this.

    0
    Comment actions Permalink
  • Antonio G Garcia

    Hello Andreas.. Maybe found a bug or maybe something is incorrect. Creating the ref object i cant set the id to a email address ex. test@mail.com. It only accepts int variables.

    PodioAPI.Models.Ref refs = new PodioAPI.Models.Ref();
    refs.Id = "test@mail.com" //The id doesnt like string variables.
    refs.Type. = "email";

    List<PodioAPI.Models.Ref> list = new List<PodioAPI.Models.Ref>();
    list.Add(refs);

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk