comparison include/services/anilist.h @ 250:c130f47f6f48

*: many many changes e.g. the search page is actually implemented now!
author Paper <paper@paper.us.eu.org>
date Sun, 04 Feb 2024 21:17:17 -0500
parents 3d2decf093bb
children 862d0d8619f6
comparison
equal deleted inserted replaced
249:6b2441c776dd 250:c130f47f6f48
1 #ifndef __services__anilist_h 1 #ifndef __services__anilist_h
2 #define __services__anilist_h 2 #define __services__anilist_h
3 3
4 #include "core/anime.h" 4 #include <vector>
5 #include "core/json.h" 5 #include <string>
6 #include <curl/curl.h>
7 6
8 namespace Services { 7 namespace Services {
9 namespace AniList { 8 namespace AniList {
10 9
11 bool AuthorizeUser(); 10 bool AuthorizeUser();
12 11
13 /* Read queries */ 12 /* Read queries */
14 int GetAnimeList(); 13 int GetAnimeList();
15 14
15 /* Search query */
16 std::vector<int> Search(const std::string& search);
17
16 /* Write queries (mutations) */ 18 /* Write queries (mutations) */
17 int UpdateAnimeEntry(int id); 19 int UpdateAnimeEntry(int id);
18 20
19 } // namespace AniList 21 } // namespace AniList
20 } // namespace Services 22 } // namespace Services