xml_rpc 0.5.1 xml_rpc: ^0.5.1 copied to clipboard
A library implementing the XML-RPC protocol. It provides a client allowing to make calls to servers.
// Copyright (c) 2015, Alexandre Ardhuin. All rights reserved. Use of this
// source code is governed by a BSD-style license that can be found in the
// LICENSE file.
import 'package:xml_rpc/client.dart' as xml_rpc;
void main() async {
final url = Uri.parse('https://api.flickr.com/services/xmlrpc');
try {
var result = await xml_rpc.call(
url,
'flickr.panda.getList',
[
{'api_key': 'yourApiKey'}
],
);
print(result);
} catch (e) {
print(e);
}
}