[ create a new paste ] login | about

Link: http://codepad.org/LNM9TWQw    [ raw code | fork ]

Plain Text, pasted on Nov 15:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
> var xmlrpc = require('xmlrpc')
> var api = xmlrpc.createSecureClient({
...  host: 'rpc.gandi.net',
...  port: 443,
...  path: '/xmlrpc/'
... })
>
> var apikey = 'my 24-character API key'
>
> // Now you can call API methods.
> // You must authenticate yourself by passing the API key
> // as the first method's argument
> api.methodCall('version.info', [apikey], function (error, value) {
...  console.dir(value)
... })


Create a new paste based on this one


Comments: