1+ .. contents::
2+ :depth: 3.0
3+ ..
4+
15MaxCDN is Hiring!
26=================
37
48Do you like building cool stuff? Do APIs keep you up at night? We're
59looking for our next superstar hacker and you could be it. Interested?
610Check out our job posting on
7- `stackoverflow <http://careers.stackoverflow.com/jobs/37078/senior-web-engineer-for-fun-growing-la-startup-maxcdn&a=JdFbT4OY>`_ .
11+ `stackoverflow <http://careers.stackoverflow.com/jobs/37078/senior-web-engineer-for-fun-growing-la-startup-maxcdn&a=JdFbT4OY>`__ .
812
913MaxCDN REST Web Services Python Client
1014======================================
@@ -20,7 +24,7 @@ Installation
2024Usage
2125-----
2226
23- ::
27+ .. code:: python
2428
2529 from maxcdn import MaxCDN
2630
@@ -50,7 +54,7 @@ signed requests.
5054We now have a shortcut for Purge Calls!
5155---------------------------------------
5256
53- ::
57+ .. code:: python
5458
5559 zone_id = 12345
5660
@@ -63,18 +67,21 @@ We now have a shortcut for Purge Calls!
6367 # Purge Files
6468 api.purge(zone_id, ['/some_file', '/another_file'])
6569
66- Every request can take an optional debug parameter. \`\`\`python
67- api.get("/account.json", debug=True) # Will output # Making GET request
68- to http://rws.netdna.com/myalias/account.json #{... API Returned Stuff
69- ...}
70+ Every request can take an optional debug parameter.
7071
71- Every request can also take an optional debug\_json parameter if you
72- don't like the exception based errors. api.get('/account.json',
73- debug\_json=True) \`\`\`
72+ .. code:: python
73+
74+ api.get("/account.json", debug=True)
75+ # Will output
76+ # Making GET request to http://rws.netdna.com/myalias/account.json
77+ #{... API Returned Stuff ...}
78+
79+ Every request can also take an optional debug_json parameter if you don't like the exception based errors.
80+ api.get('/account.json', debug_json=True)
7481
7582For more information about what optional parameters this methods accept
76- you should check out ` @kennethreitz < http://github.com/kennethreitz>`_
77- library `Requests <https://github.com/kennethreitz/requests>`_ .
83+ you should check out [ @kennethreitz]( http://github.com/kennethreitz)
84+ library `Requests <https://github.com/kennethreitz/requests>`__ .
7885
7986Initialization
8087--------------
@@ -85,7 +92,7 @@ default initialization as the example above.
8592For applications that require user authentication, you can initialize
8693the API as follows.
8794
88- ::
95+ .. code:: python
8996
9097 api = MaxCDN("myalias", "consumer_key", "consumer_secret",
9198 token="user_token", token_secret="user_token_secret")
@@ -127,3 +134,4 @@ Running examples:
127134 ./examples/report.py # [hourly|daily|monthly]
128135 ./examples/purge.py # [zoneid]
129136
137+ :target: https://travis-ci.org/MaxCDN/python-maxcdn
0 commit comments