Update documentation for APIClient.wrapped and WRAPPERS.md
- Fixed APIClient.wrapped() doc to use job_function instead of job - Updated WRAPPERS.md parameter tables: - update_post(): Corrected all parameters (post_text, post_path, parent_path, post_key, blur_label, card_url, collaborative) - create_comment(): Made parent_path optional, added comment_text requirement, clarified post_slug/post_key alternatives # Conflicts: # docs/WRAPPERS.md
This commit is contained in:
parent
2de47079ab
commit
7b4e280a3d
2 changed files with 87 additions and 269 deletions
10
README.md
10
README.md
|
|
@ -98,7 +98,7 @@ For more control over token storage:
|
|||
def getMyToken():
|
||||
# Retrieve token from your custom storage (database, file, etc.)
|
||||
return {
|
||||
"access_token": "your_token_here",
|
||||
"access_token": "***",
|
||||
"access_token_timeout": 9999999999 # Unix timestamp
|
||||
}
|
||||
|
||||
|
|
@ -372,6 +372,14 @@ API.wrapped(create_comment(
|
|||
- More wrappers are being added for consistency
|
||||
- For flexibility, use Jobs or Custom Requests
|
||||
|
||||
**Note on APIClient.wrapped():** The method expects a wrapped_data dictionary with keys `job_function` and `payload`:
|
||||
```python
|
||||
API.wrapped({
|
||||
"job_function": "post.create",
|
||||
"payload": {...}
|
||||
})
|
||||
```
|
||||
|
||||
### Using `run_job` vs. Wrappers
|
||||
|
||||
| Feature | `run_job` | Wrappers |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue