Title: API Request Collector
Author: Aaron Brazell
Published: <strong>30 de Abril de  2013</strong>
Last modified: 30 de Abril de  2013

---

Buscar plugins

Este plugin **no ha sido probado con ninguna las 3 últimas versiones principales
de WordPress**. Puede que ya no se mantenga o no tenga soporte, y puede que tenga
problemas de compatibilidad cuando se utiliza con versiones más recientes de WordPress.

![](https://s.w.org/plugins/geopattern-icon/ab-api-call-logger.svg)

# API Request Collector

 Por [Aaron Brazell](https://profiles.wordpress.org/technosailor/)

[Descargar](https://downloads.wordpress.org/plugin/ab-api-call-logger.zip)

 * [Detalles](https://cl.wordpress.org/plugins/ab-api-call-logger/#description)
 * [Reseñas](https://cl.wordpress.org/plugins/ab-api-call-logger/#reviews)
 * [Desarrollo](https://cl.wordpress.org/plugins/ab-api-call-logger/#developers)

 [Soporte](https://wordpress.org/support/plugin/ab-api-call-logger/)

## Descripción

This is a very simple plugin that creates a new adminbar menu with a list of pertinent
API calls used on a page.

However, no good thing happens in a vacuum, and you good folks, are developers.

In order to log API calls, you should invoke the `log_api_call()` method of the `
$ab_api_logger` global object. Of course, if you prefer, you can instantiate your
own object using the `AB_API_Logger` class.

The `log_api_call()` method takes two properties. The first is an array of URLs 
that will be included as menu items (easy access, easy click to see responses). 
By default, the plugin maintains a property `$api_calls` with this array and uses
it to parse out the menu items.

However, if you wish to maintain your own array, you can do that too. The plugin
takes care of what it needs, and you can feel free to maintain what you need.

The second argument for the `log_api_calls()` method is the URL that will be added
to the adminbar menu. You can escape it if you want, but I will as well for security.

The reason I built this plugin is because I deal with APIs a lot. My normal approach
to API integration is to use a pre-existing PHP library or, more commonly, build
a library around the API so I can use it easily without having to remember everything.

Usually, this means I create a class and that class is filled with methods that 
construct a URL based on parameters and then use `wp_remote_get()` to retrieve the
response from the API. Anytime **after** the URL is created, invoke this plugin:

    ```
    if( class_exists( 'AB_API_Logger' ) ) {     // Example API Call: $api_url (http://api.example.com?apikey=asdfASD234&post_id=213)     global $ab_api_logger;     $ab_api_logger->log_api_call( $ab_api_logger->api_calls, $api_url ); } 
    ```

Pull requests can be submitted via [Github](https://github.com/technosailor/ab-api-call-logger)

## Capturas de pantalla

[⌊This screenshot (properly obfuscated to protect the innocent) shows a clickable
list of API calls performed.⌉⌊This screenshot (properly obfuscated to protect the
innocent) shows a clickable list of API calls performed.⌉[

This screenshot (properly obfuscated to protect the innocent) shows a clickable 
list of API calls performed.

## Reseñas

No hay reseñas para este plugin.

## Colaboradores & Desarrolladores

“API Request Collector” es software de código abierto. Las siguientes personas han
contribuido a este plugin.

Colaboradores

 *   [ Aaron Brazell ](https://profiles.wordpress.org/technosailor/)

[Traduce “API Request Collector” a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/ab-api-call-logger)

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/ab-api-call-logger/),
echa un vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/ab-api-call-logger/),
o suscríbete al [registro de desarrollo](https://plugins.trac.wordpress.org/log/ab-api-call-logger/)
por [RSS](https://plugins.trac.wordpress.org/log/ab-api-call-logger/?limit=100&mode=stop_on_copy&format=rss).

## Historial de cambios

#### 0.1

 * Initial Release.

## Meta

 *  Versión **0.1**
 *  Última actualización **hace 13 años**
 *  Instalaciones activas **Menos de 10**
 *  Versión de WordPress ** 3.5.1 o superior **
 *  Probado hasta **3.6.1**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/ab-api-call-logger/)
 * Etiquetas
 * [api](https://cl.wordpress.org/plugins/tags/api/)[development](https://cl.wordpress.org/plugins/tags/development/)
 *  [Vista Avanzada](https://cl.wordpress.org/plugins/ab-api-call-logger/advanced/)

## Calificaciones

Aún no se han enviado valoraciones.

[Tu reseña](https://wordpress.org/support/plugin/ab-api-call-logger/reviews/#new-post)

[Ver todas las reseñas](https://wordpress.org/support/plugin/ab-api-call-logger/reviews/)

## Colaboradores

 *   [ Aaron Brazell ](https://profiles.wordpress.org/technosailor/)

## Soporte

¿Tienes algo que decir? ¿Necesitas ayuda?

 [Ver el foro de soporte](https://wordpress.org/support/plugin/ab-api-call-logger/)