MyPW Developer Resources

XML-RPC Request Format


Server Endpoint: https://services.mypw.com/RPC2

XML-RPC is a simple protocol for calling remote procedures via HTTP, using XML to encode the call. For more information about the protocol, as well as libraries and implementations in many popular programming languages, please visit XML-RPC.com.

All MyPW XML-RPC requests contain a single struct parameter, containing all of necessary parameters for the requested method. (Note: the method name is sent seperately from the other parameters.)

For Example:

Method: auth.auth
<methodCall>
    <methodName>auth.auth</methodName>
    <params>
        <param>
            <value>
                <struct>
                    <member>
                        <name>siteid</name>
                        <value><string>your-site-id</string></value>
                    </member>
                    <member>
                        <name>authkey</name>
                        <value><string>your-auth-key</string></value>
                    </member>
                    <member>
                        <name>tokenid</name>
                        <value><string>the-token-id-to-check</string></value>
                    </member>
                    <member>
                        <name>tokenvalue</name>
                        <value><string>the-token-value-to-check</string></value>
                    </member>
                    <member>
                        <name>userip</name>
                        <value><string>optional-user-ip-address</string></value>
                    </member>
                    <member>
                        <name>sitename</name>
                        <value><string>optional-sitename</string></value>
                    </member>
                    <member>
                        <name>note</name>
                        <value><string>optional-note</string></value>
                    </member>
                </struct>
            </value>
        </param>
    </params>
</methodCall>


For more information about the parameters and return values for each method, please refer to the API documentation for that method.

Google Groups Beta
Subscribe to MyPW Developers
Email:
Visit this group
Have you created a bit of code that might be of interest to other MyPW developers? Post it on MyPW google groups.