From ba1ee3ccb8ad4beb0372f11ea5397e8be14f0f85 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Sat, 26 Sep 2009 00:13:59 -0400 Subject: [PATCH] capitalization fix in status samp --- http-web-services.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http-web-services.html b/http-web-services.html index c9e89d3..e49bb5e 100755 --- a/http-web-services.html +++ b/http-web-services.html @@ -779,7 +779,7 @@ Updates the authenticating user’s status. Requires the status>>> from urllib.parse import urlencode >>> data = {'status': 'Test update from Python 3'} >>> urlencode(data) -'status=test+update+from+python+3' +'status=Test+update+from+Python+3'
  1. Python comes with a utility function to URL-encode a dictionary: urllib.parse.urlencode().
  2. This is the sort of dictionary that the Identi.ca API is looking for. It contains one key, status, whose value is the text of a single status update.