NeoAPI/pm threads

< NeoAPI

[edit] pm threads

This API call is currently not available publicly.

Retrieve a PM thread object which contains the title, a short list of participants, and the last 5 messages in the thread. This API call is only useful if you know the $pm_threadid of the PM Thread.

If you wish to list PM Threads of a specific user, look instead for the pm_threads connection of the members object.

  • URL: http://api.neoseeker.com/pm_threads/$pm_threadid/
  • Formats: json
  • Method(s): GET
  • Params:
  • Connections:
    messagesreturn an array of all private messages in the thread paginated by pagelimit, POST to this connection to add a new private message to the thread.
  • Returns:: entire json object

Example requests:

http://api.neoseeker.com/pm_threads/100/?dev_token=YOUR_DEV_TOKEN

json output

{
pm_threadid: 572925
title: "subject [Part 4]"
-owner: {
memberid: "185410"
username: "ar_cat"
url: "http://www.hh.neoseeker.com/members/ar_cat/"
api_url: "http://api.hh.neoseeker.com/members/185410/"
}
replies: "24"
participant_count: "6"
-participants: {
-1: {
memberid: 1
username: "Redemption"
url: "http://www.hh.neoseeker.com/members/Redemption/"
api_url: "http://api.hh.neoseeker.com/members/1/"
}
-44100: {
memberid: 44100
username: "Test"
url: "http://www.hh.neoseeker.com/members/Test/"
api_url: "http://api.hh.neoseeker.com/members/44100/"
}
-185410: {
memberid: 185410
username: "ar_cat"
url: "http://www.hh.neoseeker.com/members/ar_cat/"
api_url: "http://api.hh.neoseeker.com/members/185410/"
}
-238077: {
memberid: "238077"
username: "tekmosis"
url: "http://www.hh.neoseeker.com/members/tekmosis/"
api_url: "http://api.hh.neoseeker.com/members/238077/"
}
-270326: {
memberid: 270326
username: "Origin"
url: "http://www.hh.neoseeker.com/members/Origin/"
api_url: "http://api.hh.neoseeker.com/members/270326/"
}
}
invite_setting: "everyone"
status: "normal"
lastpost_date: "2011-02-05 11:57:28"
-lastpost_member: [
"1"
false
false
]
rcpt_read: "Y"
}
Last edited by Redemption on 18 March 2011 at 18:19
This page has been accessed 1,861 times.