Skip to content

Instantly share code, notes, and snippets.

@samhotchkiss
Created October 12, 2015 17:43
Show Gist options
  • Save samhotchkiss/5a74d6de2ae99eec62a4 to your computer and use it in GitHub Desktop.
Save samhotchkiss/5a74d6de2ae99eec62a4 to your computer and use it in GitHub Desktop.
Example of Multicall in WordPress
<?xml version="1.0"?>
<methodCall>
<methodName>system.multicall</methodName>
<params>
<param>
<value>
<array>
<data>
<value>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>a</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>a1</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>a2</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>a3</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>a4</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>a5</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>a6</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>a7</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>a8</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>a9</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>a11</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>a12</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>a13</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>b</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>b1</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>b2</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>b3</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>b4</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>b5</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>b6</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>b7</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>b8</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>b9</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>b11</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>b12</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>b13</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>c</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>c1</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>c2</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>c3</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>c4</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>c5</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>c6</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>c7</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>c8</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>c9</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>c11</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>c12</string></value></data></array></value></member></struct>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>c13</string></value></data></array></value></member></struct>
<struct>
<member>
<name>methodName</name>
<value>
<string>wp.getAuthors</string>
</value>
</member>
<member>
<name>params</name>
<value>
<array>
<data>
<value>
<string>1</string>
</value>
<value>
<string>MYREALUSERNAME</string>
</value>
<value>
<string>MYREALPASSWORD</string>
</value>
</data>
</array>
</value>
</member>
</struct>
</value>
</data>
</array>
</value>
</param>
</params>
</methodCall>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment