No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Data サービス
Data サービスを使用すると、投稿やトピック比較データの取得などの操作を実行できます。
投稿データを取得する
特定のクエリパラメータに一致する投稿を取得します。
1GET /data/topicdata/realtime/{recentXhours}/{topics}/{mediatypes}
2/{pageIndex}/{pageSize}| パラメータ | 型 | 説明 |
|---|---|---|
| auth_token | HeaderParam | 必須。API で認証から返されるトークンが含まれる要求ヘッダー。 |
| auth_appkey | HeaderParam | 必須。アカウント固有のアプリケーションキー。 |
| recentXhours | PathParam | さかのぼる時間数。たとえば、これを 48 に設定すると、過去 2 日以内のすべての投稿が返されます。公開日を参照して、応答内で返します。 |
| topics | PathParam | 投稿の取得対象となるトピックプロファイル ID のカンマ区切りリスト。 |
| mediaTypes | PathParam | 返す投稿の取得元となるメディアタイプのカンマ区切りリスト。 |
| pageIndex | PathParam | 返すデータのページを指定します。 |
| pageSize | PathParam | 1 ページに返す投稿の数�� |
例
1http://api.radian6.com/socialcloud/v1/data/topicdata/realtime
2/2/3..9/1,2,4,5,8,10,9,11,12,13,14,16/1/20?includeWorkflow=1&includeSpam=0
3&merged=1&token=1321987774350&extendedMediaTypes=2,3,4要求ヘッダー
1GET /socialcloud/v1/data/topicdata/realtime/{recentXhours}/{topics}
2/{mediatypes}/{pageIndex}/{pageSize} HTTP/1.1
3Host: api.radian6.com
4auth_token: NotARealToken
5auth_appkey: NotARealAppKey応答ヘッダー
1HTTP/1.1 200 OK
2Date: Thu, 29 Sep 2011 17:17:16 GMT
3Content-Type: application/xml
4Content-Length: 705
5Keep-Alive: timeout=15, max=100
6Connection: Keep-Alive応答
1<?xml version="1.0" encoding="UTF-8"?>
2<radian6_RiverOfNews_export>
3 <report_date>2012-07-11 02:24:04 +1200</report_date>
4 <user_name>Jane.Smith@...</user_name>
5 <RoN_sort_order>publishedDate</RoN_sort_order>
6 <article_count>2</article_count>
7 <total_article_count>101</total_article_count>
8 <article ID="2...9">
9 <description charset="UTF-8">
10 <headline/>
11 <author fbid="-1" externalId="3...2"/>
12 <author_full_name />
13 <recipient/>
14 <content/>
15 <external_id>2...73</external_id>
16 <parentExternalId>2...70</parentExternalId>
17 </description>
18 <avatar/>
19 <source/>
20 <host>
21 <![CDATA[twitter.com]]>
22 </host>
23 <article_url>
24 <![CDATA[2...73]]>
25 </article_url>
26 <media_provider>TWITTER</media_provider>
27 <media_type_id>8</media_type_id>
28 <language_id>16</language_id>
29 <spam_rating>0</spam_rating>
30 <publish_date epoch="1341901361000">2012-07-10 18:22:41 +1200</publish_date>
31 <harvest_date epoch="1341901379000">2012-07-10 18:22:59 +1200</harvest_date>
32 <PostInsights>
33 <PostInsight>
34 <Provider>
35 <![CDATA[provider_name]]>
36 </Provider>
37 <Type>
38 <![CDATA[type_name]]>
39 </Type>
40 <Value>
41 <!CDATA[some_value]]>
42 </Value>
43 </PostInsight>
44 </PostInsights>
45 <SourceInsights>
46 <SourceInsight>
47 <Provider>
48 <![CDATA[provider_name]]>
49 </Provider>
50 <Type>
51 <![CDATA[type_name]]>
52 </Type>
53 <Value>
54 <![CDATA[some_value]]>
55 </Value>
56 <SourceInsight>
57 </SourceInsights>
58 <PostDynamicsIteration>
59 <PostDynamicsDefinition>
60 <fieldId>9</fieldId>
61 <label>Following</label>
62 <value/>
63 <sortOrder>1</sortOrder>
64 </PostDynamicsDefinition>
65 <PostDynamicsDefinition>
66 <fieldId>8</fieldId>
67 <label>Followers</label>
68 <value/>
69 <sortOrder>2</sortOrder>
70 </PostDynamicsDefinition>
71 <PostDynamicsDefinition>
72 <fieldId>10</fieldId>
73 <label>Updates</label>
74 <value/>
75 <sortOrder>3</sortOrder>
76 </PostDynamicsDefinition>
77 <PostDynamicsDefinition>
78 <fieldId>21</fieldId>
79 <label>Sentiment</label>
80 <shortLabel>S</shortLabel>
81 <sortOrder>4</sortOrder>
82 <value/>
83 <exceptionValue>2860,false</exceptionValue>
84 <reportValue>Neutral</reportValue>
85 <tooltip/>
86 </PostDynamicsDefinition>
87 <reportFormatedData/>
88 </PostDynamicsIteration>
89 </article>
90 <article ID="252359343">
91 <description charset="UTF-8">
92 <headline>
93 <![CDATA[Post from Facebook user]]>
94 </headline>
95 <author fbid="1769972299" externalId="1769972299">
96 <![CDATA[Facebook user]]>
97 </author>
98 <recipient>
99 <![CDATA[None]]>
100 </recipient>
101 <content>
102 <![CDATA[Facebook post content...]]>
103 </content>
104 <external_id>17...9_22...4</external_id>
105 </description>
106 <source ID="1...2">
107 <![CDATA[Post from Facebook user]]>
108 </source>
109 <host>
110 <![CDATA[www.facebook.com]]>
111 </host>
112 <article_url>
113 <![CDATA[http://www.facebook.com/permalink.php?story_fbid=22...4&id=17...9]]>
114 </article_url>
115 <media_provider>facebook.com Discussions</media_provider>
116 <media_type_id>12</media_type_id>
117 <language_id>1</language_id>
118 <spam_rating>0</spam_rating>
119 <publish_date epoch="1341886037000">2012-07-10 14:07:17 +1200</publish_date>
120 <harvest_date epoch="1341886905000">2012-07-10 14:21:45 +1200</harvest_date>
121 <PostDynamicsIteration>
122 <PostDynamicsDefinition>
123 <fieldId>21</fieldId>
124 <label>Sentiment</label>
125 <shortLabel>S</shortLabel>
126 <sortOrder>1</sortOrder>
127 <value>
128 <![CDATA[2860,0]]>
129 </value>
130 <exceptionValue>2860,false</exceptionValue>
131 <reportValue>Neutral</reportValue>
132 <tooltip/>
133 </PostDynamicsDefinition>
134 <reportFormatedData>
135 <![CDATA[<span style="font-weight:bold; color: #FF9900; font-size: 11pt"> Sentiment: </span>Neutral ]]>
136 </reportFormatedData>
137 </PostDynamicsIteration>
138 </article>
139</radian6_RiverOfNews_export>この操作のパラメータの完全なリストについては、Radian6 API ドキュメントの「投稿データを取得する」を参照してください。