-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccount.rsd
More file actions
42 lines (34 loc) · 1.75 KB
/
Account.rsd
File metadata and controls
42 lines (34 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<api:script>
<api:info
title="Account"
desc="Returns status and other metadata on a Diffbot token"
xmlns:other="http://apiscript.com/ns?v1">
<!-- Account -->
<attr name="name" xs:type="string" readonly="True" other:xPath="/json/name" />
<attr name="email" xs:type="string" readonly="True" other:xPath="/json/email" />
<attr name="plan" xs:type="string" readonly="True" other:xPath="/json/plan" />
<attr name="status" xs:type="string" readonly="True" other:xPath="/json/status" />
<attr name="created" xs:type="string" readonly="True" other:xPath="/json/created" />
<!-- Tokens -->
<attr name="token" xs:type="string" readonly="True" other:xPath="/json/token" />
<attr name="childTokens" xs:type="string" readonly="True" other:xPath="/json/childTokens" />
<!-- Usage -->
<attr name="usage" xs:type="string" readonly="True" other:xPath="/json/usage" />
</api:info>
<!-- Setting global parameters -->
<api:set attr="ContentType" value="application/json" />
<!-- Set authorization parameters -->
<api:validate attr="_connection.APIToken" desc="The APIToken must be set in ProfileSettings connection property for authentication. See Help for more details." />
<api:set attr="auth" value="[_connection.APIToken]" />
<api:set attr="URI" value="https://api.diffbot.com/v4/account?token=[auth]" />
<api:set attr="XPath" value="/json" />
<api:set attr="DataModel" value="FlattenedDocuments" />
<api:set attr="PageIdColumns" value="True" />
<api:set attr="EnablePaging" value="False" />
<api:script method="GET">
<api:set attr="method" value="GET" />
<api:call op="apisadoExecuteJSONGet">
<api:push />
</api:call>
</api:script>
</api:script>