Comment create
This commit is contained in:
parent
499c5aee98
commit
620553ea14
4 changed files with 56 additions and 16 deletions
23
README.md
23
README.md
|
|
@ -2,15 +2,24 @@
|
|||
|
||||
Intended use (not working yet but testing.py does)
|
||||
|
||||
'''
|
||||
import trustcafeapi
|
||||
import os, simplejson as json
|
||||
```python
|
||||
import trustcafeapiwrapper, os
|
||||
|
||||
|
||||
API = trustcafeapi.APIClient(
|
||||
API = trustcafeapiwrapper.APIClient(
|
||||
client_id=os.getenv("client_id"),
|
||||
client_secret=os.getenv("client_secret"),
|
||||
debug=True
|
||||
client_secret=os.getenv("client_secret")
|
||||
)
|
||||
|
||||
'''
|
||||
profile = API.run_job('userprofile.get', "simon-little")
|
||||
```
|
||||
|
||||
## Debates
|
||||
|
||||
1. Not sure about the name `jobs` and `run_job`. Requests is an
|
||||
existing package dependency though. `tasks` seems to broard. I'm sure
|
||||
there's probably an already existing name that I can't articulate how
|
||||
to find.
|
||||
2. Should these `job` be called with dot notation? Or with slashes? Or
|
||||
something else? Is it okay to have these as strings?
|
||||
3. Should we do validation in the `jobs` or let the server do that all?
|
||||
Loading…
Add table
Add a link
Reference in a new issue