Topic サービス
Topic サービスを使用すると、トピックプロファイル、検索条件グループ、検索条件クエリの作成などの操作を実行できます。
トピックプロファイルを作成または更新する
トピックを作成または更新します。
1POST /topics/createTP/{topicId}/{name}/{isPublic}/{mediatypes}
2
3/{languages}/{regions}| パラメータ | 型 | 説明 |
|---|---|---|
| auth_token | HeaderParam | 必須。API で認証から返されるトークンが含まれる要求ヘッダー。 |
| auth_appkey | HeaderParam | 必須。アカウント固有のアプリケーションキー。 |
| topicId | PathParam | トピックの一意の ID (更新時に必須) |
| name | PathParam | トピック条件の表示名 |
| isPublic | PathParam | トピックが公開か非公開かを示す整数値 |
| mediatypes | PathParam | トピックの有効なメディアタイプを示すカンマ区切りリスト |
| languages | PathParam | トピックの有効な言語を示すカンマ区切りリスト |
| regions | PathParam | トピックの有効な地域を示すカンマ区切りリスト |
| billingCode | QueryParam | トピックの請求先コード。デフォルトは空の文字列です。 |
| isTrial | QueryParam | トピックがトライアルかどうかを示す整数値。デフォルトは 1 です。 |
例
1http://api.radian6.com/socialcloud/v1/topics/createTP/1/My Topic/1/8/1/2要求ヘッダー
1GET /socialcloud/v1/topics/createTP/{topicId}/{name}/{isPublic}
2
3/{mediatypes}/{languages}/{regions} 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<topicFilter>
2
3 <name>
4
5 <![CDATA[My Topic]]>
6
7 </name>
8
9 <public>0</public>
10
11 <status>2</status>
12
13 <estimateVolume>-1</estimateVolume>
14
15 <competeEnabled>0</competeEnabled>
16
17 <topicFilterTypeId>1</topicFilterTypeId>
18
19 <bCode>
20
21 <![CDATA[]]>
22
23 </bCode>
24
25 <creatorId>538</creatorId>
26
27 <creatorName>
28
29 <![CDATA[Jane Smith]]>
30
31 </creatorName>
32
33 <creatorEmail>Jane.Smith@...</creatorEmail>
34
35 <topicFilterId>3...3</topicFilterId>
36
37 <inboundOnTopicLinksCount>0</inboundOnTopicLinksCount>
38
39 <languages/>
40
41 <mediaType>8,12,14,13,11,10,9,5,2,1,16,4</mediaType>
42
43 <projects/>
44
45 <regions/>
46
47 <deactivationDate>null</deactivationDate>
48
49 <evp>false</evp>
50
51 <topicFilterTier>
52
53 <topicFilterTierId>-1</topicFilterTierId>
54
55 <name/>
56
57 <lowerTrafficLimit>-1</lowerTrafficLimit>
58
59 <upperTrafficLimit>-1</upperTrafficLimit>
60
61 </topicFilterTier>
62
63 <number_queries>0</number_queries>
64
65 <filterGroups>
66
67 <filterGroup>
68
69 <filterGroupId>2...9</filterGroupId>
70
71 <name>
72
73 <![CDATA[Group 1]]>
74
75 </name>
76
77 <filterGroupTypeId>1</filterGroupTypeId>
78
79 <filterQueries/>
80
81 </filterGroup>
82
83 </filterGroups>
84
85 <sentimentQueries/>
86
87 <includeSourceFilterList>
88
89 <filterIds/>
90
91 </includeSourceFilterList>
92
93 <excludeSourceFilterList>
94
95 <filterIds/>
96
97 </excludeSourceFilterList>
98
99 <includeAllSourceFilterList>
100
101 <filterIds/>
102
103 </includeAllSourceFilterList>
104
105</topicFilter>