[Trunk|Library]

Subscribe service:add method  getCommunitiesSubscribedTo


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@55386 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2019-04-16 14:15:28 +00:00
parent 117196d176
commit 63d3b9777c
1 changed files with 4 additions and 0 deletions

View File

@ -44,6 +44,10 @@ export class SubscribeService {
return this.http.post(url+"/community/"+pid+"/subscribers/delete", JSON.stringify([email]), this.getAuthOptionsWithBody())
.map(res => <any> res.json());
}
getCommunitiesSubscribedTo(email:string, url:string){
return this.http.get(url+"/subscriber/communities?email="+email)
.map(res => <any> res.json());
}
public getAuthOptionsWithBody():RequestOptions{
let headers = new Headers();