View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006149 | unreal | module api | public | 2022-06-28 16:39 | 2023-11-25 10:36 |
Reporter | Valware | Assigned To | syzop | ||
Priority | none | Severity | feature | Reproducibility | N/A |
Status | resolved | Resolution | fixed | ||
Product Version | 6.0.4-rc2 | ||||
Target Version | 6.1.3-rc1 | Fixed in Version | 6.1.3-rc1 | ||
Summary | 0006149: Please an an url-api | ||||
Description | Please add an url-api so that we may use a module to grab a webpage from a url for parsing (specific use-case: json parsing) Thanks and have a wonderful day! | ||||
Tags | No tags attached. | ||||
3rd party modules | |||||
|
Idea is I make a more user-friendly (module-developers-friendly) API so you don't have to bother with curl vs non-curl, rehashes where your callback function is unloaded causing a crash (or using PERM), and all kinds of other shit, just a simple interface / layer that sits in-between :). |
|
There is now a better interface but it does not deal with rehashes yet, thus causing old callback -> crash if you are not careful, in short: not hassle free atm. Will see if I can work on that that another day... |
|
Done in various commits. There could be bugs but since we are using the code ourselves for like centralblocklist i presume we will discover them quickly and work them out :) API documentation is at https://www.unrealircd.org/docs/Dev:URL_API https://github.com/unrealircd/unrealircd/commit/6ce1958e1c3788e30a82fe24430eaeb7dbc10ca5 (and others) commit 6ce1958e1c3788e30a82fe24430eaeb7dbc10ca5 (HEAD -> unreal60_dev, origin/unreal60_dev, origin/HEAD) Author: Bram Matthys <[email protected]> Date: Sat Nov 25 08:30:21 2023 +0100 Add URL API and use it at one place from central-blocklist. Docs at: https://www.unrealircd.org/docs/Dev:URL_API ---- Already had to change RegisterApiCallback() to RegisterApiCallbackWebResponse() and changed functions arguments. See https://www.unrealircd.org/docs/Dev:URL_API for the up to date info :) |
Date Modified | Username | Field | Change |
---|---|---|---|
2022-06-28 16:39 | Valware | New Issue | |
2022-06-28 16:41 | syzop | Assigned To | => syzop |
2022-06-28 16:41 | syzop | Status | new => confirmed |
2022-06-28 16:41 | syzop | Status | confirmed => acknowledged |
2022-06-28 16:52 | syzop | Note Added: 0022584 | |
2023-10-22 15:18 | syzop | Status | acknowledged => assigned |
2023-10-22 15:19 | syzop | Target Version | => 6.1.3-rc1 |
2023-11-20 17:27 | syzop | Sticky Issue | No => Yes |
2023-11-24 14:42 | syzop | Note Added: 0023095 | |
2023-11-25 09:37 | syzop | Note Added: 0023098 | |
2023-11-25 09:37 | syzop | Note Edited: 0023098 | |
2023-11-25 10:35 | syzop | Status | assigned => resolved |
2023-11-25 10:35 | syzop | Resolution | open => fixed |
2023-11-25 10:35 | syzop | Fixed in Version | => 6.1.3-rc1 |
2023-11-25 10:35 | syzop | Sticky Issue | Yes => No |
2023-11-25 10:36 | syzop | Note Edited: 0023098 |