[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:
parent
117196d176
commit
63d3b9777c
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue