Add API calls for profile component
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user