Add API calls for profile component

This commit is contained in:
kevinpauer
2022-04-05 19:23:52 +02:00
parent 16ad83ae40
commit 4c7506d8b2
8 changed files with 113 additions and 63 deletions

View File

@@ -13,19 +13,4 @@ export class BotService {
private http: HttpClient,
private tokenStorage: TokenStorageService
) {}
/**
* @param {string} telegramUserID
* @returns Observable
*/
public createTransaction(telegram_user_id: string): Observable<any> {
return this.http.post(API_URL + 'telegram', {
headers: new HttpHeaders({
'Content-Type': 'application/json',
Authorization: 'Bearer ' + this.tokenStorage.getToken(),
}),
responseType: 'text',
telegram_user_id,
});
}
}