Commit graph

41 commits

Author SHA1 Message Date
Michael
f29bd23ea8 New function to convert BBCode for a given ID 2021-07-08 13:47:46 +00:00
Michael
6e789ec19a No need for +1 and -1 2021-06-16 17:57:01 +00:00
Michael
78d4aff878 Set the "Link" header 2021-06-16 15:02:33 +00:00
Michael
385c03364f The function is now protected again 2021-06-08 20:45:58 +00:00
Michael
e4be1e0cd5 Get rid of "api_user()" function 2021-06-08 20:41:46 +00:00
Michael
2a440c0bae Use "checkAllowedScope" instead of "login" 2021-06-08 12:00:22 +00:00
Michael
9720ee2c20 Rearranged scope check 2021-06-08 09:11:56 +00:00
Michael
11c8dfe73a Unified request for uid 2021-06-08 08:28:14 +00:00
Michael
85217941e3 Simplified code 2021-06-08 08:04:12 +00:00
Michael
126e281165 Improved documentation 2021-06-08 06:39:23 +00:00
Michael
acbe9ebf9e API: New classes for OAuth and basic auth 2021-06-08 06:32:24 +00:00
Michael
9c59bcb6a5 Support OAuth for the legacy API 2021-06-02 22:11:21 +00:00
Michael
c3c6f3c8d3 Code style conventions 2021-05-29 10:40:47 +00:00
Michael
97356ed617 API: Unified request parameter handling 2021-05-28 06:10:32 +00:00
Michael
b3b9c51dbe Reduced log level 2021-05-19 07:02:12 +00:00
Michael
ce427b248e Central function to process request parameters 2021-05-18 06:31:22 +00:00
Michael
49207a8624 Added scope check 2021-05-16 07:37:11 +00:00
Michael
1cc341033f API: We now can post statuses via API 2021-05-15 22:40:57 +00:00
Michael
3aa883f1e3 API: List handling, dummy endpoints 2021-05-13 21:15:32 +00:00
Michael
b18073d5a8 Repurposed OAuth frontend handling, store the scope 2021-05-13 14:58:55 +00:00
Michael
132e08edb8 Whitespaces ... 2021-05-13 11:33:07 +00:00
Michael
7975bc244d Refine OAuth flow 2021-05-13 11:26:56 +00:00
Michael
8a5560ec8f Simplified null check 2021-05-12 12:40:45 +00:00
Michael
4a6d33e182 HTTP_AUTHORIZATION should be enough 2021-05-12 12:34:55 +00:00
Michael
19a81d25d5 Added documentation headers 2021-05-12 12:08:30 +00:00
Michael
6ca42512e9 OAuth connections now have to be ackknowledged 2021-05-12 06:50:27 +00:00
Michael
c22846339a Improved error reporting 2021-05-12 05:30:21 +00:00
Michael
bade0a2345 Improved cards handling, simplified Bearer handling 2021-05-11 19:15:05 +00:00
Michael
7d8c152aaf Check the start of the string 2021-05-11 13:17:48 +00:00
Michael
74f3c885bf use "random_bytes" instead of "openssl_random_pseudo_bytes" 2021-05-11 13:12:12 +00:00
Michael
cfb9b73205 Store creation date 2021-05-11 08:16:40 +00:00
Michael
82003bbe47 Login prototype 2021-05-11 06:30:20 +00:00
Michael
3bbf543d25 API: Some more endpoints 2021-05-08 19:21:52 +00:00
Michael Vogel
31d70e02e0
Update src/Module/BaseApi.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-05-08 14:23:47 +02:00
Michael
6236870aa4 Add all required HTTP methods 2021-05-08 09:14:19 +00:00
Michael
10a6f0a98f API: New function to fetch current user id 2021-05-03 05:25:54 +00:00
Balázs Úr
054c301ef0 Update copyright 2021-03-29 08:40:20 +02:00
Hypolite Petovan
bbefc61a0c Use Arguments->getCommand() where it makes more sense than getQueryString()
- Remove a couple of intermediary query string variables
2020-09-12 09:09:15 -04:00
nupplaPhil
23c64b9a11
Add license info at Friendica classes 2020-02-09 15:45:36 +01:00
Hypolite Petovan
dd24b3bac0 Move api/profile/show to src/Module
- Update API documentation
- Update BaseApi::format to include headers by format
2020-01-29 23:31:37 -05:00
Hypolite Petovan
75a2190af5 Move Module\Base\Api to Module\BaseApi 2020-01-27 21:18:42 -05:00
Renamed from src/Module/Base/Api.php (Browse further)