Request Invite
Forgot Password
Email
|
Password Reminder
Email
Remember Me
Documents
Videos
Discussions
General Questions
Javascript APIs
Site Interface
Web Service APIs
Search Discussion
Advanced Search
Categories
REST APIs (16)
SOAP APIs (4)
Most Recent Posts
No recent posts.
Post a Topic or Question
Web Service APIs
Questions regarding ThePort's API library. SOAP and REST API methods are supported here.
View All Topics
Subscribe
Unsubscribe
Post 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
Reply
Remove
Edit
Subscribe
Unsubscribe
Subscribe
Unsubscribe
What is the reason to block this signature?
Sorted oldest to newest
Sorted newest to oldest
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 Dugan
–
Senior Platform Developer
www.twitter.com/theportlabs
"Time flies like an arrow. Fruit flies like a banana"
Block signature
Unblock signature
Reply
Direct Link
Remove
Edit
^
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?
show more
well... just a bit... tried guid, tried uuid... even tried UserID and userid, didn't think to try guidid... silly me.
Posted:
Reply
Direct Link
Remove
Edit
^
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:
Reply
Direct Link
Remove
Edit
^
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 Dugan
–
Senior Platform Developer
www.twitter.com/theportlabs
"Time flies like an arrow. Fruit flies like a banana"
Block signature
Unblock signature
Reply
Direct Link
Remove
Edit
^