Title: Gallery Plugin XMLRPC Interface
Author: Peidong Hu
Published: <strong>23 de junio de 2012</strong>
Last modified: 10 de enero de 2013

---

Buscar plugins

Este plugin **no se ha probado con las últimas 3 versiones mayores de WordPress**.
Puede que ya no tenga soporte ni lo mantenga nadie, o puede que tenga problemas 
de compatibilidad cuando se usa con las versiones más recientes de WordPress.

![](https://s.w.org/plugins/geopattern-icon/gallery-plugin-xmlrpc-interface.svg)

# Gallery Plugin XMLRPC Interface

 Por [Peidong Hu](https://profiles.wordpress.org/zhouyibhic/)

[Descargar](https://downloads.wordpress.org/plugin/gallery-plugin-xmlrpc-interface.zip)

 * [Detalles](https://es.wordpress.org/plugins/gallery-plugin-xmlrpc-interface/#description)
 * [Valoraciones](https://es.wordpress.org/plugins/gallery-plugin-xmlrpc-interface/#reviews)
 *  [Instalación](https://es.wordpress.org/plugins/gallery-plugin-xmlrpc-interface/#installation)
 * [Desarrollo](https://es.wordpress.org/plugins/gallery-plugin-xmlrpc-interface/#developers)

 [Soporte](https://wordpress.org/support/plugin/gallery-plugin-xmlrpc-interface/)

## Descripción

Basically this plugin creates XMLRPC interfaces for Gallery Plugin.
 Thanks for 
the author of Extended API, Michael Grosser, since this plugin has reused the design.
NOTE: API functions (xmlrpc revoke functions) are all prefixed with ‘i_gllrxmlrpc’.

## Instalación

 1. Gallery plugin has to be installed as the pre-requisite condition. You can find
    Gallery Plugin here, https://wordpress.org/extend/plugins/gallery-plugin/
 2. unzip the plugin
 3. Upload plugin folder to the `/wp-content/plugins/` directory
 4. Activate the plugin through the ‘Plugins’ menu in WordPress
 5. In administrator portal, click Settings->Gallery Plugin XMLRPC Interface to enable/
    disable the api functions.

Warning: Debug Error log is being appended into the WP_CONTENT_DIR . ‘/debug.log’;
Make sure that in production environment, trun off the debug directive in wp-includes/
default-constants.php

## FAQ

  Exmaple to invoke the xmlrpc api in PHP

//this example demo how to invoke the api to delete a image in the album
 set_time_limit(
0); require_once(«IXR_Library.php.inc»);

$client->debug = true; // Set it to false in Production Environment

// Create the client object
 $client = new IXR_Client(‘{zonename}’,’/xmlrpc.php?
delete_images[]={imageID}’);

$username = «{admin login name}»;
 $password = «{password}»;

$function_args = array(array(»,$username,$password,'{postID}’, array()));
 $params
= array($username,$password,»i_gllrxmlrpc_editpost», $function_args);

// Run a query To Read Posts From WordPress
 $ret = $client->query(‘gllrxmlrpc_extapi.
callGllrMethod’, $params); if (!$ret) { die(‘Something went wrong – ‘.$client->getErrorCode().’:‘.
$client->getErrorMessage()); }

$myresponse = $client->getResponse();
 print_r($myresponse);

  Exmaple to invoke the xmlrpc api in java

client = new XMLRPCClient(WordPress.currentBlog.getUrl(),
 WordPress.currentBlog.
getHttpuser(), WordPress.currentBlog.getHttppassword());

Object[] result = null;
 // Map<String, String> gallery_type = new HashMap<String,
String>(); gallery_type.put(«post_type», «gallery»); //String[] return_fields = {«
post_title», «post_type»};

Object[] fArgs = {«», WordPress.currentBlog.getUsername(),WordPress.currentBlog.
getPassword(),gallery_type};
 Object[] funcArgs = {fArgs}; // Object[] params = {
WordPress.currentBlog.getUsername(), WordPress.currentBlog.getPassword(), «i_gllrxmlrpc_metaweblog_getposts»,
funcArgs }; try { result = (Object[]) client.call(«gllrxmlrpc_extapi.callGllrMethod»,
params); } catch (XMLRPCException e) { errorMsg = e.getMessage(); }

  Exmaple to invoke the delete post api in php debug = true; // Set it to fase in
Production Environment

// Create the client object
 $client = new IXR_Client(‘hushanqi.localhost’,’/xmlrpc.
php?XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=13505726480152′);

 $username = «{user name}»;
 $password = «{password}»;

 $function_args = array(array(»,$username,$password,’99’));

 $params = array($username,$password,»i_gllrxmlrpc_deletepost», $function_args);

 // Run a query To Read Posts From WordPress
 if (!$client->query(‘gllrxmlrpc_extapi.
callGllrMethod’, $params)) { die(‘Something went wrong – ‘.$client->getErrorCode().’:‘.
$client->getErrorMessage()); }

 $myresponse = $client->getResponse();
 print_r($myresponse); die(); ?>

## Reseñas

No hay valoraciones para este plugin.

## Colaboradores y desarrolladores

«Gallery Plugin XMLRPC Interface» es un software de código abierto. Las siguientes
personas han colaborado con este plugin.

Colaboradores

 *   [ Peidong Hu ](https://profiles.wordpress.org/zhouyibhic/)

[Traduce «Gallery Plugin XMLRPC Interface» a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/gallery-plugin-xmlrpc-interface)

### ¿Interesado en el desarrollo?

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

## Registro de cambios

#### 0.3

 * add new interface i_gllrxmlrpc_metaweblog_getPost
 * new php example of delete post

#### 0.2

 * add new interface i_gllrxmlrpc_metaweblog_getposts to be compliant with metaweblog
   standard for getposts api.
 * bug fix in i_gllrxmlrpc_newpost
 * new example in Java code

#### 0.1

 * initial version

## Meta

 *  Versión **0.3**
 *  Última actualización **hace 13 años**
 *  Instalaciones activas **10+**
 *  Versión de WordPress ** 3.3 o superior **
 *  Probado hasta **3.3.2**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/gallery-plugin-xmlrpc-interface/)
 * Etiquetas:
 * [gallery](https://es.wordpress.org/plugins/tags/gallery/)[photo](https://es.wordpress.org/plugins/tags/photo/)
   [xmlrpc](https://es.wordpress.org/plugins/tags/xmlrpc/)
 *  [Vista avanzada](https://es.wordpress.org/plugins/gallery-plugin-xmlrpc-interface/advanced/)

## Valoraciones

Aún no se han enviado valoraciones.

[Your review](https://wordpress.org/support/plugin/gallery-plugin-xmlrpc-interface/reviews/#new-post)

[Ver todas las valoraciones](https://wordpress.org/support/plugin/gallery-plugin-xmlrpc-interface/reviews/)

## Colaboradores

 *   [ Peidong Hu ](https://profiles.wordpress.org/zhouyibhic/)

## Soporte

¿Tienes algo que decir? ¿Necesitas ayuda?

 [Ver el foro de soporte](https://wordpress.org/support/plugin/gallery-plugin-xmlrpc-interface/)