You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -54,3 +54,27 @@ Function List
54
54
-------------
55
55
56
56
Please Refer to the [Python Script Library documentation page](http://python-sdc-client.readthedocs.io/en/latest/) for the list of functions available.
57
+
58
+
Transitioning from python to REST
59
+
---------------------------------
60
+
61
+
If your goal is to interact with the REST API directly, you can use this python client library to understand the REST interactions by logging the actions it takes. This is useful because full documentation of the REST API has not yet been created; and also provides a complete example of known working operations.
62
+
63
+
- Use or modify an example, or write a new script against the python sdcclient module.
64
+
- Log the HTTP requests made by the script.
65
+
66
+
To log all the requests made by your script in significant detail, add to your script:
67
+
68
+
```python
69
+
import logging
70
+
import httplib
71
+
httplib.HTTPConnection.debuglevel =1
72
+
73
+
logging.basicConfig() # you need to initialize logging, otherwise you will not see anything from requests
0 commit comments