Stackexchange
StackExchange is a network of question-and-answer communities and an API for accessing their posts, users, tags, and related data.
- Base URL:
https://api.stackexchange.com/2.0 - Auth: OAuth 2.0 (user-delegated) — attach an InTouch
oauthcredential. Mint one withitcli.py /oauth <provider>(device-code) or/google-auth(Google); the server auto-refreshes the access token before each run, so the connector never handles or stores tokens.
Operations
get_access_tokens_accesstokens— GET /access-tokens/{accessTokens} — Reads the properties for a set of access tokens.
{accessTokens} can contain up
- get_access_tokens_accesstokens_invalidate — GET /access-tokens/{accessTokens}/invalidate — Immediately expires the access tokens passed. This method is meant to allow an a
- get_answers — GET /answers — Returns all the undeleted answers in the system.
The sorts accepted by this me
- get_answers_ids — GET /answers/{ids} — Gets the set of answers identified by ids.
This is meant for batch fetcing of
- get_answers_ids_comments — GET /answers/{ids}/comments — Gets the comments on a set of answers.
If you know that you have an answer id
- get_apps_accesstokens_de_authenticate — GET /apps/{accessTokens}/de-authenticate — Passing valid access_tokens to this method causes the application that created t
Inputs
- a linked
oauthcredential (no key inputs) — the server injects a freshAuthorization: Bearerfrom it operation— one of the operations above- path parameters when an operation's path contains
{...} query— optional JSON object of query paramsbody— JSON object for create/update ops
Example
operation: get_access_tokens_accesstokens
# (attach an 'oauth' credential to the task — no inline secrets)
Publishes
The keys a later task may reference as {{taskName.key}}. Referencing anything not listed here resolves to nothing at run time.
erroroperationresultstatus
Input Properties
Every property this tool accepts, from its own tool.iml.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
operation |
string | yes | — | One of: get_access_tokens_accesstokens, get_access_tokens_accesstokens_invalidate, get_answers, get_answers_ids, get_answers_ids_comments, get_apps_accesstokens_de_authenticate |
accessTokens |
string | no | — | Path parameter accessTokens (required by some operations). |
ids |
string | no | — | Path parameter ids (required by some operations). |
query |
string | no | — | Optional query params as a JSON object string, e.g. {"limit": 10}. |