Enhance: Google Photos integration, refinement of Schedule/Todo lists and API fixes
This commit is contained in:
@@ -78,13 +78,13 @@ class PhotoService {
|
||||
}
|
||||
|
||||
Future<String> getGoogleAuthUrl() async {
|
||||
final data = await _client.get("${ApiConfig.photos}/auth/url");
|
||||
final data = await _client.getMap("${ApiConfig.photos}/auth/url");
|
||||
return data["url"] as String;
|
||||
}
|
||||
|
||||
Future<bool> getGoogleStatus() async {
|
||||
try {
|
||||
final data = await _client.get("${ApiConfig.photos}/status");
|
||||
final data = await _client.getMap("${ApiConfig.photos}/status");
|
||||
return data["connected"] as bool? ?? false;
|
||||
} catch (e) {
|
||||
return false;
|
||||
@@ -92,6 +92,6 @@ class PhotoService {
|
||||
}
|
||||
|
||||
Future<void> disconnectGoogle() async {
|
||||
await _client.get("${ApiConfig.photos}/disconnect");
|
||||
await _client.getMap("${ApiConfig.photos}/disconnect");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user