GetLibraryEntry fetches one library entry by exact title match. Conventions- first precedence — a title that resolves to a convention is returned as one even if a playbook of the same title existed. Returns *APIError with Code="not_found" when the title doesn't match anything; CLI callers can type-a
(title string)
| 1820 | // type-assert to detect that case. PLAN-1560 / TASK-1561 (endpoint) + |
| 1821 | // TASK-1562 (CLI plumbing). |
| 1822 | func (c *Client) GetLibraryEntry(title string) (*LibraryEntryResponse, error) { |
| 1823 | params := url.Values{} |
| 1824 | params.Set("title", title) |
| 1825 | var result LibraryEntryResponse |
| 1826 | return &result, c.get("/library/entry?"+params.Encode(), &result) |
| 1827 | } |
| 1828 | |
| 1829 | // --- Webhooks --- |
| 1830 |
no test coverage detected