summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/pull-business-card14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/pull-business-card b/test/pull-business-card
new file mode 100755
index 0000000..253476d
--- /dev/null
+++ b/test/pull-business-card
@@ -0,0 +1,14 @@
+#!/usr/bin/python
+
+import sys
+import dbus
+
+bus = dbus.SessionBus()
+client = dbus.Interface(bus.get_object("org.openobex.client", "/"),
+ "org.openobex.Client")
+
+if (len(sys.argv) < 3):
+ print "Usage: %s <device> <file>" % (sys.argv[0])
+ sys.exit(1)
+
+client.PullBusinessCard({ "Destination": sys.argv[1] }, sys.argv[2])