You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/diffbot.d.ts
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ declare class Diffbot {
22
22
* @param {string} [options.proxy] Used to specify the IP address of a custom proxy that will be used to fetch the target page, instead of Diffbot's default IPs/proxies. (Ex: &proxy=168.212.226.204)
23
23
* @param {string} [options.proxyAuth] Used to specify the authentication parameters that will be used with the proxy specified in the &proxy parameter. (Ex: &proxyAuth=username:password)
24
24
* @param {string} [options.body] Optional HTML markup to pass as POST body
25
+
* @param {string} [options.customJS] This functionality is currently in beta. See docs for details: https://docs.diffbot.com/docs/en/api-analyze#custom-javascript
25
26
* @returns {Object} The analyze query results
26
27
*/
27
28
analyze(options: {
@@ -36,6 +37,7 @@ declare class Diffbot {
36
37
proxy?: string;
37
38
proxyAuth?: string;
38
39
body?: string;
40
+
customJS?: string;
39
41
}): any;
40
42
/**
41
43
* Execute an article API call
@@ -52,6 +54,7 @@ declare class Diffbot {
52
54
* @param {string} [options.proxyAuth] Used to specify the authentication parameters that will be used with the proxy specified in the &proxy parameter. (Ex: &proxyAuth=username:password)
53
55
* @param {string[]} [options.naturalLanguage] Used to request the output of the Diffbot Natural Language API in the field naturalLanguage. Example: &naturalLanguage=entities,facts,categories,sentiment.
54
56
* @param {string} [options.body] Optional HTML markup to pass as POST body
57
+
* @param {string} [options.customJS] This functionality is currently in beta. See docs for details: https://docs.diffbot.com/docs/en/api-article#custom-javascript
55
58
* @returns {Object} The article query results
56
59
*/
57
60
article(options: {
@@ -67,6 +70,7 @@ declare class Diffbot {
67
70
proxyAuth?: string;
68
71
naturalLanguage?: string[];
69
72
body?: string;
73
+
customJS?: string;
70
74
}): any;
71
75
/**
72
76
* Execute a discussion API call
@@ -79,6 +83,7 @@ declare class Diffbot {
79
83
* @param {string} [options.proxy] Used to specify the IP address of a custom proxy that will be used to fetch the target page, instead of Diffbot's default IPs/proxies. (Ex: &proxy=168.212.226.204)
80
84
* @param {string} [options.proxyAuth] Used to specify the authentication parameters that will be used with the proxy specified in the &proxy parameter. (Ex: &proxyAuth=username:password)
81
85
* @param {string} [options.body] Optional HTML markup to pass as POST body
86
+
* @param {string} [options.customJS] This functionality is currently in beta. See docs for details: https://docs.diffbot.com/docs/en/api-discussion#custom-javascript
82
87
* @returns {Object} The discussion query results
83
88
*/
84
89
discussion(options: {
@@ -90,6 +95,7 @@ declare class Diffbot {
90
95
proxy?: string;
91
96
proxyAuth?: string;
92
97
body?: string;
98
+
customJS?: string;
93
99
}): any;
94
100
/**
95
101
* Execute an event API call
@@ -124,6 +130,7 @@ declare class Diffbot {
124
130
* @param {string} [options.proxy] Used to specify the IP address of a custom proxy that will be used to fetch the target page, instead of Diffbot's default IPs/proxies. (Ex: &proxy=168.212.226.204)
125
131
* @param {string} [options.proxyAuth] Used to specify the authentication parameters that will be used with the proxy specified in the &proxy parameter. (Ex: &proxyAuth=username:password)
126
132
* @param {string} [options.body] Optional HTML markup to pass as POST body
133
+
* @param {string} [options.customJS] This functionality is currently in beta. See docs for details: https://docs.diffbot.com/docs/en/api-image#custom-javascript
127
134
* @returns {Object} The image query results
128
135
*/
129
136
image(options: {
@@ -134,6 +141,7 @@ declare class Diffbot {
134
141
proxy?: string;
135
142
proxyAuth?: string;
136
143
body?: string;
144
+
customJS?: string;
137
145
}): any;
138
146
/**
139
147
* Execute a product API call
@@ -146,6 +154,7 @@ declare class Diffbot {
146
154
* @param {string} [options.proxy] Used to specify the IP address of a custom proxy that will be used to fetch the target page, instead of Diffbot's default IPs/proxies. (Ex: &proxy=168.212.226.204)
147
155
* @param {string} [options.proxyAuth] Used to specify the authentication parameters that will be used with the proxy specified in the &proxy parameter. (Ex: &proxyAuth=username:password)
148
156
* @param {string} [options.body] Optional HTML markup to pass as POST body
157
+
* @param {string} [options.customJS] This functionality is currently in beta. See docs for details: https://docs.diffbot.com/docs/en/api-product#custom-javascript
149
158
* @returns {Object} The product query results
150
159
*/
151
160
product(options: {
@@ -157,6 +166,7 @@ declare class Diffbot {
157
166
proxy?: string;
158
167
proxyAuth?: string;
159
168
body?: string;
169
+
customJS?: string;
160
170
}): any;
161
171
/**
162
172
* Execute a video API call
@@ -168,6 +178,7 @@ declare class Diffbot {
168
178
* @param {string} [options.proxy] Used to specify the IP address of a custom proxy that will be used to fetch the target page, instead of Diffbot's default IPs/proxies. (Ex: &proxy=168.212.226.204)
169
179
* @param {string} [options.proxyAuth] Used to specify the authentication parameters that will be used with the proxy specified in the &proxy parameter. (Ex: &proxyAuth=username:password)
170
180
* @param {string} [options.body] Optional HTML markup to pass as POST body
181
+
* @param {string} [options.customJS] This functionality is currently in beta. See docs for details: https://docs.diffbot.com/docs/en/api-video#custom-javascript
0 commit comments