Discussions

    Search Discussion
    Most Recent Posts
    Questions regarding ThePort's API library. SOAP and REST API methods are supported here.  
    View All TopicsSubscribePost a Topic or Question
    57 Posts
    Given a retrieved remote comment how to I query details on the user?
    By gadgeteer   
    when you retrieve remote comments via the REST API the comment has a section called author:

          <Author>
            <CachedByHost>WEB01:/LM/W3SVC/5/ROOT/ws-4-129708624335090710</CachedByHost>
            <ObjectType>ThePortBusiness.Thin.User, ThePortBusiness, Version=2008.12.18.17, Culture=neutral, PublicKeyToken=null</ObjectType>
            <ID>0</ID>
            <UserID>{redacted, sure about security issues.}</UserID>
            <PartnerNumID>{redacted, sure about security issues.}</PartnerNumID>
            <PartnerID>{redacted, sure about security issues.}</PartnerID>
            <CacheKey />
            <Key>{redacted, sure about security issues.}</Key>
            <ImageUrl>http://my.stltoday.com/user/b/{redacted, sure about security issues.}.image</ImageUrl>
            <SmallImageUrl>http://my.stltoday.com/user/s/{redacted, sure about security issues.}.image</SmallImageUrl>
            <ImageUrl_50>http://my.stltoday.com/user/50/{redacted, sure about security issues.}.image</ImageUrl_50>
            <GenderID>1</GenderID>
            <PublicName>{redacted, sure about security issues.}</PublicName>
            <ProfileUrl>{redacted, sure about security issues.}</ProfileUrl>
          </Author>

    Which field in the Author section can be used with the

    http://services.theport.com/REST/V1/Users

    users call... and what does the &SearchBy= need to be set to if the actual user_id is not in the <author></author> section?

    Categories:  REST APIs
    ReplyRemoveEditUnsubscribeSubscribe

    Visit Dugan's profile
    61 Posts
    Dugan  says:
    /Rest/V1/Users/{UserIDNode}?devkey={devkey}&searchby=guidid

    should get you what you're looking for.  Was this undocumented feature not obvious?
    Posted:   
    Michael DuganSenior Platform Developer

    www.twitter.com/theportlabs
     
    "Time flies like an arrow.  Fruit flies like a banana"


    Block signature
    ReplyDirect LinkRemoveEdit

    Visit gadgeteer's profile
    57 Posts
    gadgeteer  says:
    Dugan said:
    /Rest/V1/Users/{UserIDNode}?devkey={devkey}&searchby=guidid

    should get you what you're looking for.  Was this undocumented feature not obvious?
    well... just a bit... tried guid, tried uuid... even tried UserID and userid, didn't think to try guidid... silly me.
    Posted:   
    ReplyDirect LinkRemoveEdit

    Visit gadgeteer's profile
    57 Posts
    gadgeteer  says:
    on a side note: what is <ID>0</ID> supposed to be and why does it "always" seem to be 0?
    Posted:   
    ReplyDirect LinkRemoveEdit

    Visit Dugan's profile
    61 Posts
    Dugan  says:
    Well, it should be the internal integer value that you'd use to grab a User the default way (i.e. without having to specify "SearchBy=GuidID".  We'll take a look at getting that patched up.
    Posted:   
    Michael DuganSenior Platform Developer

    www.twitter.com/theportlabs
     
    "Time flies like an arrow.  Fruit flies like a banana"


    Block signature
    ReplyDirect LinkRemoveEdit