-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccount.rsd
More file actions
24 lines (18 loc) · 913 Bytes
/
Account.rsd
File metadata and controls
24 lines (18 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<api:script>
<api:info title="Account" desc="Returns information about Diffbot account" xmlns:other="http://apiscript.com/ns?v1">
<attr name="data" xs:type="string" readonly="True" other:xPath="/json/data" />
</api:info>
<!-- Setting global parameters -->
<api:set attr="ContentType" value="application/json" />
<!-- Set authorization parameters -->
<!-- Using APIKey -->
<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:setc attr="URI" value="https://api.diffbot.com/v4/account/?token={auth}" />
<api:setc attr="XPath" value="/data" />
<api:script method="GET">
<api:call op="jsonproviderGet">
<api:push />
</api:call>
</api:script>
</api:script>