この文章は Salesforce 機械翻訳システムを使用して翻訳されました。詳細はこちらをご参照ください。
英語に切り替える

Data サービス

Data サービスを使用すると、投稿やトピック比較データの取得などの操作を実行できます。

投稿データを取得する

特定のクエリパラメータに一致する投稿を取得します。 

1GET /data/topicdata/realtime/{recentXhours}/{topics}/{mediatypes}
2
3/{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
3/2/3..9/1,2,4,5,8,10,9,11,12,13,14,16/1/20?includeWorkflow=1&includeSpam=0
4
5&merged=1&token=1321987774350&extendedMediaTypes=2,3,4

要求ヘッダー

1GET /socialcloud/v1/data/topicdata/realtime/{recentXhours}/{topics}
2
3/{mediatypes}/{pageIndex}/{pageSize} HTTP/1.1 
4
5Host: api.radian6.com
6
7auth_token: NotARealToken
8
9auth_appkey: NotARealAppKey

応答ヘッダー

1HTTP/1.1 200 OK 
2
3Date: Thu, 29 Sep 2011 17:17:16 GMT 
4
5Content-Type: application/xml 
6
7Content-Length: 705 
8
9Keep-Alive: timeout=15, max=100 
10
11Connection: Keep-Alive

応答

1<?xml version="1.0" encoding="UTF-8"?>
2
3<radian6_RiverOfNews_export>
4
5    <report_date>2012-07-11 02:24:04 +1200</report_date>
6
7    <user_name>Jane.Smith@...</user_name>
8
9    <RoN_sort_order>publishedDate</RoN_sort_order>
10
11    <article_count>2</article_count>
12
13    <total_article_count>101</total_article_count>
14
15    <article ID="2...9">
16
17        <description charset="UTF-8">
18
19            <headline/>
20
21            <author fbid="-1" externalId="3...2"/>
22
23            <author_full_name />
24
25            <recipient/>
26
27            <content/>
28
29            <external_id>2...73</external_id>
30
31            <parentExternalId>2...70</parentExternalId> 
32
33        </description>
34
35        <avatar/>
36
37        <source/>
38
39        <host>
40
41            <![CDATA[twitter.com]]>
42
43        </host>
44
45        <article_url>
46
47            <![CDATA[2...73]]>
48
49        </article_url>
50
51        <media_provider>TWITTER</media_provider>
52
53        <media_type_id>8</media_type_id>
54
55        <language_id>16</language_id>
56
57        <spam_rating>0</spam_rating>
58
59        <publish_date epoch="1341901361000">2012-07-10 18:22:41 +1200</publish_date>
60
61        <harvest_date epoch="1341901379000">2012-07-10 18:22:59 +1200</harvest_date>
62
63        <PostInsights>
64
65            <PostInsight>
66
67                <Provider>
68
69                    <![CDATA[provider_name]]> 
70
71                </Provider>
72
73                <Type>
74
75                    <![CDATA[type_name]]> 
76
77                </Type>
78
79                <Value>
80
81                    <!CDATA[some_value]]> 
82
83                </Value>      
84
85            </PostInsight>  
86
87        </PostInsights>
88
89        <SourceInsights>
90
91            <SourceInsight>
92
93                <Provider>
94
95                    <![CDATA[provider_name]]> 
96
97                </Provider>
98
99                <Type>
100
101                    <![CDATA[type_name]]> 
102
103                </Type>
104
105                <Value>
106
107                    <![CDATA[some_value]]> 
108
109                </Value>      
110
111            <SourceInsight>  
112
113        </SourceInsights>    
114
115        <PostDynamicsIteration>
116
117            <PostDynamicsDefinition>
118
119                <fieldId>9</fieldId>
120
121                <label>Following</label>
122
123                <value/>
124
125                <sortOrder>1</sortOrder>
126
127            </PostDynamicsDefinition>
128
129            <PostDynamicsDefinition>
130
131                <fieldId>8</fieldId>
132
133                <label>Followers</label>
134
135                <value/>
136
137                <sortOrder>2</sortOrder>
138
139            </PostDynamicsDefinition>
140
141            <PostDynamicsDefinition>
142
143                <fieldId>10</fieldId>
144
145                <label>Updates</label>
146
147                <value/>
148
149                <sortOrder>3</sortOrder>
150
151            </PostDynamicsDefinition>
152
153            <PostDynamicsDefinition>
154
155                <fieldId>21</fieldId>
156
157                <label>Sentiment</label>
158
159                <shortLabel>S</shortLabel>
160
161                <sortOrder>4</sortOrder>
162
163                <value/>
164
165                <exceptionValue>2860,false</exceptionValue>
166
167                <reportValue>Neutral</reportValue>
168
169                <tooltip/>
170
171            </PostDynamicsDefinition>
172
173            <reportFormatedData/>
174
175        </PostDynamicsIteration>
176
177    </article>
178
179    <article ID="252359343">
180
181        <description charset="UTF-8">
182
183            <headline>
184
185                <![CDATA[Post from Facebook user]]>
186
187            </headline>
188
189            <author fbid="1769972299" externalId="1769972299">
190
191                <![CDATA[Facebook user]]>
192
193            </author>
194
195            <recipient>
196
197                <![CDATA[None]]>
198
199            </recipient>
200
201            <content>
202
203                <![CDATA[Facebook post content...]]>
204
205            </content>
206
207            <external_id>17...9_22...4</external_id>
208
209        </description>
210
211        <source ID="1...2">
212
213            <![CDATA[Post from Facebook user]]>
214
215        </source>
216
217        <host>
218
219            <![CDATA[www.facebook.com]]>
220
221        </host>
222
223        <article_url>
224
225            <![CDATA[http://www.facebook.com/permalink.php?story_fbid=22...4&id=17...9]]>
226
227        </article_url>
228
229        <media_provider>facebook.com Discussions</media_provider>
230
231        <media_type_id>12</media_type_id>
232
233        <language_id>1</language_id>
234
235        <spam_rating>0</spam_rating>
236
237        <publish_date epoch="1341886037000">2012-07-10 14:07:17 +1200</publish_date>
238
239        <harvest_date epoch="1341886905000">2012-07-10 14:21:45 +1200</harvest_date>
240
241        <PostDynamicsIteration>
242
243            <PostDynamicsDefinition>
244
245                <fieldId>21</fieldId>
246
247                <label>Sentiment</label>
248
249                <shortLabel>S</shortLabel>
250
251                <sortOrder>1</sortOrder>
252
253                <value>
254
255                    <![CDATA[2860,0]]>
256
257                </value>
258
259                <exceptionValue>2860,false</exceptionValue>
260
261                <reportValue>Neutral</reportValue>
262
263                <tooltip/>
264
265            </PostDynamicsDefinition>
266
267            <reportFormatedData>
268
269                <![CDATA[<span style="font-weight:bold; color: #FF9900; font-size: 11pt"> Sentiment:  </span>Neutral  ]]>
270
271            </reportFormatedData>
272
273        </PostDynamicsIteration>
274
275    </article>
276
277</radian6_RiverOfNews_export>

この操作のパラメータの完全なリストについては、Radian6 API ドキュメントの「投稿データを取得する」を参照してください。