PluginProbe
WPGet API – Connect to any external REST API / 1.9.4
WPGet API – Connect to any external REST API v1.9.4
1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.1.0 2.1.1 2.1.3 2.1.4 2.1.5 2.2.0 2.2.1 2.2.10 2.2.2 2.2.3 All 97 releases
wpgetapi / readme.txt

readme.txt in WPGet API – Connect to any external REST API 1.9.4, at readme.txt

378 lines 15.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 === Connect to external APIs - WPGetAPI ===
2 Contributors: wpgetapi
3 Tags: api, external api, json, endpoint, rest
4 Requires at least: 5.0
5 Requires PHP: 7.2
6 Tested up to: 6.2
7 Stable tag: 1.9.4
8 License: GPLv2 or later
9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
11 Connect WordPress to external APIs. Send your data to APIs and display API data using shortcode or template tag. Connecting to APIs has never been easier.
12
13 == Description ==
14
15 The easiest way to connect WordPress to external APIs.
16
17 WPGetAPI allows you to easily send data and get data from an unlimited number of 3rd party REST APIs. You can then format and display the returned data on your WordPress website using a shortcode or a template tag.
18
19 WPGetAPI supports virtually all authentication methods including [OAuth 2.0 authorization](https://wpgetapi.com/downloads/oauth-2-0-authentication/?utm_campaign=OAuth&utm_medium=wporg&utm_source=readme), Bearer token, basic auth, API keys and username/password.
20
21 https://www.youtube.com/watch?v=goHkt-t3pok
22
23 ### Demo
24
25 View the live demo and see how we are connecting to several different APIs and displaying the data in 3 unique ways.
26
27 [LIVE DEMO - Connecting WordPress to external APIs](https://wpgetapi.com/demo-connecting-wordpress-to-external-api/?utm_campaign=Demo&utm_medium=wporg&utm_source=readme)
28
29 ### Major Features
30
31 * Connect your WordPress website to any REST API
32 * Unlimited APIs & endpoints
33 * No coding required
34 * Display API data using a template tag or shortcode
35 * GET, POST, PUT & DELETE requests
36 * Query string, header & body parameters
37
38 ### Documentation
39
40 We have tons of articles and help available. View these articles below to get started:
41
42 * [Quick Start Guide](https://wpgetapi.com/docs/quick-start-guide/?utm_campaign=Docs&utm_medium=wporg&utm_source=readme)
43 * [Step by Step Example](https://wpgetapi.com/docs/step-by-step-example/?utm_campaign=Docs&utm_medium=wporg&utm_source=readme)
44 * [Will this work with my API?](https://wpgetapi.com/docs/will-this-work-with-my-api/?utm_campaign=OAuth&utm_medium=wporg&utm_source=readme)
45
46 ### Extending WPGetAPI
47
48 = PRO Plugin =
49 The **[PRO Plugin](https://wpgetapi.com/downloads/pro-plugin/?utm_campaign=Pro&utm_medium=wporg&utm_source=readme)** provides many extra features that allow you to do some more advanced things with your APIs. Features of the PRO Plugin include:
50
51 * Tokens
52 * Dynamic variables
53 * Chain API calls
54 * Send to API on user registration
55 * Send to API on WooCommerce order
56 * Cache API calls
57 * Format JSON data into HTML
58 * Retrieve nested data
59 * Base64 encoded auth
60 * XML format
61
62
63 = OAuth 2.0 Authorization =
64 The **[OAuth 2.0 Authorization](https://wpgetapi.com/downloads/oauth-2-0-authentication/?utm_campaign=OAuth&utm_medium=wporg&utm_source=readme)** plugin allows authorization of your API through the OAuth 2.0 method.
65
66
67 ### WPGetAPI Integrations
68
69 WPGetAPI integrates extremely well with other WordPress plugins, allowing you to do some very cool things with your API. Click the links below for more info on these integrations.
70
71 * [Charts & Tables from API data using wpDataTables](https://wpgetapi.com/docs/using-with-wpdatatables/?utm_campaign=Integrations&utm_medium=wporg&utm_source=readme)
72 * [Gravity Forms send data to API](https://wpgetapi.com/docs/using-with-gravity-forms/?utm_campaign=Integrations&utm_medium=wporg&utm_source=readme)
73 * [Contact Form 7 send data to API](https://wpgetapi.com/docs/using-with-contact-form-7/?utm_campaign=Integrations&utm_medium=wporg&utm_source=readme)
74 * [WPForms send data to API](https://wpgetapi.com/docs/using-with-wpforms/?utm_campaign=Integrations&utm_medium=wporg&utm_source=readme)
75 * [Elementor, DIVI & other page builders](https://wpgetapi.com/docs/elementor-divi-other-page-builders/?utm_campaign=Integrations&utm_medium=wporg&utm_source=readme)
76
77
78 ### Translating WPGetAPI
79
80 You can translate WPGetAPI into your own language on [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/wpgetapi/)
81
82 Here is an article to help [get started with translations](https://make.wordpress.org/polyglots/handbook/translating/first-steps/)
83
84 == Installation ==
85 = Requirements =
86 * WordPress version 4.6 and later
87 * PHP 7.2, Tested with PHP 8.2
88 * cURL
89
90 = Usage =
91
92 1. Go to the `WPGetAPI -> Setup` menu to add your APIs.
93 2. Once your APIs are saved, a new tab is created allowing you to add endpoints.
94 3. Once your endpoints are saved, you can use the template tag or shortcode to connect to your API and view the data.
95
96 == Frequently Asked Questions ==
97
98
99 = Is WPGetAPI free? =
100
101 Yes, WPGetAPI’s core features are and always will be free.
102
103 [Paid extensions](https://wpgetapi.com/downloads/?utm_campaign=Extensions&utm_medium=wporg&utm_source=faq) are available if you are looking to do more with your API.
104
105
106 = Can I connect to any REST API? =
107
108 Yes, most likely. WPGetAPI handles all major methods of authorization and authentication. It will depend on the type of authentication your API is using. Please click the link to view the [types of authentication and authorization](https://wpgetapi.com/docs/authentication-authorization/?utm_campaign=Docs&utm_medium=wporg&utm_source=faq) that are available.
109
110
111 = Can I capture form data and send to my API? =
112
113 Yes, with our [PRO Plugin](https://wpgetapi.com/downloads/pro-plugin/?utm_campaign=Pro&utm_medium=wporg&utm_source=faq) you can capture data from your forms and send this data to your API.
114
115 This is perfect for lead generation forms, contact forms or really any other type form that requires you to send form data to an API.
116
117
118 = Can I use an XML based API? =
119
120 Yes, we support XML with our [PRO Plugin](https://wpgetapi.com/downloads/pro-plugin/?utm_campaign=Pro&utm_medium=wporg&utm_source=faq)
121
122
123 = How do I connect WordPress to an API? =
124
125 By using this plugin of course! Check out the video at the top of this page or visit our [Quick Start Guide](https://wpgetapi.com/docs/quick-start-guide/?utm_campaign=Quick-Start&utm_medium=wporg&utm_source=faq) to get started with connecting your WordPress website with an API.
126
127
128 = How do I cache API calls? =
129
130 We support caching with our [PRO Plugin](https://wpgetapi.com/downloads/pro-plugin/?utm_campaign=Pro&utm_medium=wporg&utm_source=faq). It also recognises dynamic queries and will cache these individually.
131
132 A dynamic query might be something like these:
133
134 /customer-endpoint/customer?user_id=123
135 /customer-endpoint/customer?user_id=4567
136
137 The PRO plugin recognises that whilst they are the same endpoint, they are different queries that need to be cached separately.
138
139 = Where can I find docs? =
140
141 All of our [documentation can be found here](https://wpgetapi.com/docs/?utm_campaign=Docs&utm_medium=wporg&utm_source=faq).
142
143
144 = What can I do with the API data? =
145
146 The API data can be output as a JSON string, stored in a PHP variable or automatically output as HTML (using PRO plugin extension). You can easily format the data into tables or charts plus many other possibilities.
147
148
149 = Will you help me if I am having trouble? =
150
151 Yes! Please [contact us](https://wpgetapi.com/contact/?utm_campaign=Contact&utm_medium=wporg&utm_source=faq) and we will get your API up and running.
152
153
154
155 == Screenshots ==
156
157 1. The Setup screen where you can add your external APIs
158 2. Once an external API has been added, a new page will be created to setup the API endpoints
159 3. A live demo of the output when debug mode is set to true
160 4. An example of some raw output from an API
161 5. Basic example of the output from an API formatted into HTML table
162
163
164 == Changelog ==
165
166 = 1.9.4 (2023-06-22) =
167 - New - styling changes in admin. Remove input descriptions and replace with tooltips.
168 - Udpate - expand the info in many tooltips.
169
170 = 1.9.3 (2023-06-22) =
171 - New - add success and error messages when using the 'Test Endpoint' button in the admin.
172
173 = 1.9.2 (2023-06-12) =
174 - New - add new shortcode attributes for AJAX - button_id for adding an ID to the button and ajax_output for allowing to change the output div to whatever you like. This needs to be used like ajax_output="#my_div_with_id" or ajax_output="#my_div_with_class"
175
176 = 1.9.1 (2023-05-18) =
177 - Fix - error when trying to format XML as HTML.
178
179 = 1.9.0 (2023-05-18) =
180 - New - one-click copy buttons next to Template Tag and Shortcode.
181 - New - extra styling for WPGetAPI heading that also includes small icon and version number.
182
183 = 1.8.14 (2023-04-25) =
184 - Fix - error with setting encoding to JSON encode.
185
186 = 1.8.13 (2023-04-24) =
187 - Fix - issue when using multiple ajax buttons in PRO plugin.
188
189 = 1.8.12 (2023-04-21) =
190 - Fix - passing post id through ajax button for PRO plugin.
191
192 = 1.8.11 (2023-04-20) =
193 - Fix - Set chain_delay to 0 on WordPress admin to avoid loading delays in admin.
194
195 = 1.8.10 (2023-04-19) =
196 - New - Add ability to set a delay when chaining endpoints.
197
198 = 1.8.9 (2023-04-18) =
199 - Fix - Allow multidemsnional arrays when using x-www-formurlencoded
200
201 = 1.8.8 (2023-04-12) =
202 - Compatibility - Tested with WordPress 6.2.
203
204 = 1.8.7 (2023-03-24) =
205 - Enhancement - Allow raw string data to pass through output, rather than only JSON string data.
206
207 = 1.8.6 (2023-03-17) =
208 - New - Allow raw data in POST body fields.
209
210 = 1.8.5 (2023-03-16) =
211 - New - Add new format='no_display' shortcode attribute to stop any output from the API.
212 - New - Add new integration with chaining methods that can be used in conjuction with the PRO plugin.
213
214 = 1.8.4 (2023-03-01) =
215 - New - Add new integration with image attributes for the shortcode, to allow the display of images using the PRO plugin.
216
217 = 1.8.3 (2023-02-17) =
218 - New - Add ability to set value as boolean type.
219 - Fix - If format is set to HTML, then set the results format as PHP array to avoid having to do it in the settings.
220
221 = 1.8.2 (2023-02-14) =
222 - New - Integration for the new AJAX button in the PRO plugin.
223 - Fix - Allow both JSON string and PHP array format to work when format is set to HTML.
224
225 = 1.8.1 (2023-02-10) =
226 - Fix - Issue with nested JSON arrays within parameter values.
227 - Fix - Tidy up the wording of some fields and licensing page.
228
229 = 1.8.0 (2023-02-06) =
230 - New - Gutenberg block added.
231 - New - Admin styling updates.
232
233 = 1.7.11 (2023-02-03) =
234 - New - add ability of Pro plugin to send XML formatted data in Body POST fields.
235
236 = 1.7.10 (2023-01-30) =
237 - New - add new filter 'wpgetapi_should_we_stop' which allows us to not call the API if some condition is not met. Added to allow processing of Woocommerce tokens on successful order (Pro plugin only).
238 - New - add new attribute 'on'. Added to allow processing of Woocommerce tokens on successful order.
239
240 = 1.7.9 (2023-01-22) =
241 - Fix - fix the handling of arrays within parameters.
242
243 = 1.7.8 (2023-01-13) =
244 - New - add new licensing and updating methods.
245
246 = 1.7.7 (2023-01-10) =
247 - New - add ability to set float and integers within paramater settings using float(number) and integer(number) syntax.
248 - Fix - fix help link for Body paramters going to wrong page.
249
250 = 1.7.6 (2023-01-09) =
251 - Fix - fix error with DELETE not working.
252
253 = 1.7.5 (2023-01-09) =
254 - New - add DELETE method.
255
256 = 1.7.4 (2022-12-06) =
257 - Fix - small fix to allow new custom field renaming within the Custom Post Import plugin.
258
259 = 1.7.3 (2022-12-02) =
260 - New - add full response into the 'Test Endpoint' section.
261 - Update - readme updates and 'tested up to' update.
262 - Update - update 3 screenshots.
263
264 = 1.7.2 (2022-11-08) =
265 - New - add warning when trying to output PHP array data in shortcode.
266 - New - remove banner for Pro plugin. No one likes ads, do they?
267
268 = 1.7.1 (2022-11-02) =
269 - Enhancement - rework the 'Test Endpoint' section in admin to make it cleaner and easier to read (again).
270 - Enhancement - styling tweaks.
271
272 = 1.7.0 (2022-10-06) =
273 - Enhancement - rework the 'Test Endpoint' section in admin to make it cleaner and easier to read.
274 - Enhancement - styling tweaks.
275 - New - add banner for Pro plugin.
276
277 = 1.6.1 (2022-08-25) =
278 - Fix - modify the way the body is retrieved. Required for OAuth 2.0 Authorization plugin.
279
280 = 1.6.0 (2022-08-19) =
281 - New - add endpoint testing within the admin area.
282
283 = 1.5.4 (2022-08-15) =
284 - Fix - change response code action in version 1.5.2 to a filter.
285 - New - updated styling for admin area.
286
287 = 1.5.3 (2022-07-29) =
288 - Enhancement - add new request method PUT.
289
290 = 1.5.2 (2022-07-06) =
291 - Enhancement - add new action to get response code. Required for OAuth 2.0 Authorization plugin.
292
293 = 1.5.1 (2022-07-06) =
294 - Enhancement - add new shortcode attributes for formatting HTML in Pro plugin.
295 - Enhancement - minor styling tweaks.
296 - Fix - very minor bug fixes.
297
298 = 1.5.0 (2022-06-27) =
299 - Fix - fully internationalize the plugin.
300
301 = 1.4.10 (2022-06-22) =
302 - Fix - add new filter 'wpgetapi_json_response_body_before_decode' in place of removing invalid characters from 1.4.8 as this was stripping out non-english values.
303
304 = 1.4.9 (2022-06-22) =
305 - Enhancement - rewrite some css to make endpoint page a bit nicer and add some more screenshots.
306
307 = 1.4.8 (2022-06-07) =
308 - Enhancement - remove invalid characters from JSON data that was causing a null return.
309
310 = 1.4.7 (2022-05-25) =
311 - Fix - change the redirect after saving to a javascript solution
312
313 = 1.4.6 (2022-05-24) =
314 - Enhancement - add new attribute 'format' within shortcode that allows formatting of a number in the Pro Plugin.
315
316 = 1.4.5 (2022-05-18) =
317 - Fix - error in admin-options file.
318
319 = 1.4.4 (2022-05-18) =
320 - Enhancement - add some better, and clearer help in the admin area. Tidy up some styling.
321 - Fix - error displaying correct endpoint ID within admin area shortcode and template tag helpers. Happening when multiple endpoints added.
322
323 = 1.4.3 (2022-05-15) =
324 - Fix - body was not being set correctly.
325
326 = 1.4.2 (2022-05-13) =
327 - Enhancement - readme updates and plugin links within plugin page.
328
329 = 1.4.1 (2022-05-05) =
330 - Fix - new tab was not appearing on intitial save on setup page.
331 - Enhancement - add new filter 'wpgetapi_admin_pages' to allow adding extra tabs.
332
333 = 1.4.0 (2022-03-17) =
334 - Fix - refactor the building of request args. Body was not working correctly.
335 - Fix - change naming convention from Template Function to Template Tag within admin.
336 - Enhancement - modify output of debug to show more info and to show whether or not shortcode is used.
337
338 = 1.3.4 (2022-03-17) =
339 - Enhancement - add ability to use headers and body variables in Pro Plugin.
340
341 = 1.3.3 (2022-03-03) =
342 - Enhancement - style the debug output to make it easier to understand and provide links to docs.
343
344 = 1.3.2 (2022-02-22) =
345 - Bug fix - change paramater value fields to textarea. This allows the proper use of JSON strings within these fields.
346
347 = 1.3.1 (2022-02-16) =
348 - Bug fix - error with class property name that was not allowing proper $args to be sent to remote request
349
350 = 1.3.0 (2022-02-08) =
351 - Fix - rewrite headers parameters section
352
353 = 1.2.3 (2021-12-14) =
354 - Enhancement - add ability for query_variables to be used in shortcode with the Pro Plugin
355
356 = 1.2.2 (2021-11-09) =
357 - Enhancement - add args to debug info. Will be useful for endpoint_variables in Pro Plugin
358
359 = 1.2.1 (2021-11-05) =
360 - Bug fixes with encrypting values
361
362 = 1.2.0 (2021-11-04) =
363 - Enhancement - add option to JSON encode body parameters
364 - Enhancement - allow simple arrays to be sent in body
365
366 = 1.1.0 (2021-11-03) =
367 - Enhancement - reconfigure debug info
368 - Bug fixes
369
370 = 1.0.2 (2021-11-02) =
371 - Bug fixes
372
373 = 1.0.1 (2021-11-02) =
374 - Bug fixes
375
376 = 1.0.0 (2021-10-27) =
377 - Initial Release
378