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

No Results

Search Tips:

  • Please consider misspellings
  • Try different search keywords

Authentication サービス

Authentication サービスを使用すると、Radian6 システムでユーザを認証できます。

応答で認証トークンが返されます。この認証トークンは、auth_token という要求ヘッダーとして後続の要求に使用します。すべての要求に auth_appkey も指定する必要があります。

1GET /socialcloud/v1/auth/authenticate
パラメータ 説明
auth_user HeaderParam 必須。ユーザ名が含まれる要求ヘッダー。
auth_pass HeaderParam 必須。プレーンテキストのパスワードが含まれる要求ヘッダー。
auth_token HeaderParam 必須。API で認証から返されるトークンが含まれる要求ヘッダー。
auth_appkey HeaderParam 必須。アカウント固有のアプリケーションキー。
fields QueryParam userdetailsclientattributes など、返す要素のカンマ区切りリスト。

1https://api.radian6.com/socialcloud/v1/auth/authenticate
2?fields=userdetails,clientattributes

要求ヘッダー

1GET /socialcloud/v1/auth/authenticate HTTP/1.1 
2Host: api.radian6.com
3auth_user: mikemullen  
4auth_pass: NotARealPassword 
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<auth>
2  <token>b65e06d1b5383...</token>
3  <UserDetails>
4    <user>
5      <userId>12345</userId>
6      <clientId>99</clientId>
7      <displayName><![CDATA[Mike Mullen]]></displayName>
8      <emailAddress>Mike.Mullen@...</emailAddress>
9      <timezone>GMT</timezone>
10      <packages></packages>
11      <userRoleId>1</userRoleId>
12      <createdDate>Jun 22, 2010 05:18 PM</createdDate>
13      <enabled>true</enabled>
14      <aihUsers><aihUser>
15      <userKey>84ba97...</userKey>
16      <registerDate>2010</registerDate>
17      <type>1</type>
18      </aihUser></aihUsers>
19    </user>
20    <avatar userId="12345"><![CDATA[http://path-to-avatar-image.jpg]]></avatar>
21    <Packages></Packages>
22    <ClientAttributes>
23      <attribute>
24        <id>12</id>
25        <description>IDLE_TIMEOUT</description>
26        <value>10800000</value>
27      </attribute>
28      ...
29    </ClientAttributes>
30  </UserDetails>
31</auth>