Skip to content
Snippets Groups Projects

Topic/1281 generic organization membership function

Compare and
2 files
+ 406
344
Compare changes
  • Side-by-side
  • Inline

Files

+ 22
1
@@ -68,7 +68,28 @@ export class OrganizationApi {
) {
apiConnectionBasic.setHeader();
return axios
.get(getOrganizationApiUrl() + '-/isRWTHMember')
.get(getOrganizationApiUrl() + '-/isMember/' + encodeURIComponent('https://ror.org/04xfq0f34'))
.then(thenHandler)
.catch(catchHandler);
}
public static isMember(
organizationUrl: string,
thenHandler: any = apiConnectionBasic.defaultThenHandler,
catchHandler: any = apiConnectionBasic.defaultOnCatch
) {
apiConnectionBasic.setHeader();
return axios
.get(getOrganizationApiUrl() + '-/isMember/' + encodeURIComponent(organizationUrl))
.then(thenHandler)
.catch(catchHandler);
}
public static getMemberships(
thenHandler: any = apiConnectionBasic.defaultThenHandler,
catchHandler: any = apiConnectionBasic.defaultOnCatch
) {
apiConnectionBasic.setHeader();
return axios
.get(getOrganizationApiUrl() + '-/isMember')
.then(thenHandler)
.catch(catchHandler);
}
Loading