Skip to content

Latest commit

 

History

History
372 lines (250 loc) · 14.4 KB

File metadata and controls

372 lines (250 loc) · 14.4 KB

HelloAssoApi.PartenairesApi

All URIs are relative to https://api.helloasso.com/v5

Method HTTP request Description
partnersMeApiClientsPut PUT /partners/me/api-clients Mise à jour du domaine
partnersMeApiNotificationsDelete DELETE /partners/me/api-notifications Suppression de l'URL de notification principale
partnersMeApiNotificationsOrganizationsOrganizationSlugDelete DELETE /partners/me/api-notifications/organizations/{organizationSlug} Suppression d'une URL de notification liée à une organisation
partnersMeApiNotificationsOrganizationsOrganizationSlugPut PUT /partners/me/api-notifications/organizations/{organizationSlug} Mise à jour d'une URL de notification liée à une organisation
partnersMeApiNotificationsPut PUT /partners/me/api-notifications Mise à jour de l'URL de notification principale
partnersMeGet GET /partners/me Récupération des informations
partnersMeOrganizationsGet GET /partners/me/organizations Obtenir toutes les organisations

partnersMeApiClientsPut

partnersMeApiClientsPut(opts)

Mise à jour du domaine

<br/><br/><b>Votre clientId doit être autorisé à tous ces privilèges : </b> <br/> AccessPublicData<br/><br/>

Example

import HelloAssoApi from 'hello_asso_api';
let defaultClient = HelloAssoApi.ApiClient.instance;
// Configure OAuth2 access token for authorization: OAuth2
let OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new HelloAssoApi.PartenairesApi();
let opts = {
  'helloAssoApiV5CommonModelsAccountsClientsPublicPutApiClientRequest': new HelloAssoApi.HelloAssoApiV5CommonModelsAccountsClientsPublicPutApiClientRequest() // HelloAssoApiV5CommonModelsAccountsClientsPublicPutApiClientRequest | 
};
apiInstance.partnersMeApiClientsPut(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});

Parameters

Name Type Description Notes
helloAssoApiV5CommonModelsAccountsClientsPublicPutApiClientRequest HelloAssoApiV5CommonModelsAccountsClientsPublicPutApiClientRequest [optional]

Return type

null (empty response body)

Authorization

OAuth2

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/*+json
  • Accept: Not defined

partnersMeApiNotificationsDelete

partnersMeApiNotificationsDelete(opts)

Suppression de l'URL de notification principale

<br/><br/><b>Votre clientId doit être autorisé à tous ces privilèges : </b> <br/> AccessPublicData<br/><br/>

Example

import HelloAssoApi from 'hello_asso_api';
let defaultClient = HelloAssoApi.ApiClient.instance;
// Configure OAuth2 access token for authorization: OAuth2
let OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new HelloAssoApi.PartenairesApi();
let opts = {
  'notificationType': new HelloAssoApi.HelloAssoApiV5CommonModelsApiNotificationsApiNotificationType() // HelloAssoApiV5CommonModelsApiNotificationsApiNotificationType | Do not specify a notification type to remove the main notification Url
};
apiInstance.partnersMeApiNotificationsDelete(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});

Parameters

Name Type Description Notes
notificationType HelloAssoApiV5CommonModelsApiNotificationsApiNotificationType Do not specify a notification type to remove the main notification Url [optional]

Return type

null (empty response body)

Authorization

OAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

partnersMeApiNotificationsOrganizationsOrganizationSlugDelete

partnersMeApiNotificationsOrganizationsOrganizationSlugDelete(organizationSlug, opts)

Suppression d'une URL de notification liée à une organisation

<br/><br/><b>Votre token doit avoir l'un de ces rôles : </b><br/>OrganizationAdmin<br/><br/>Si vous êtes une <b>association</b>, vous pouvez obtenir ces rôles avec votre client.<br/>Si vous êtes un <b>partenaire</b>, vous pouvez obtenir ces rôles par le flux d'autorisation.<br/><br/><b>Votre clientId doit être autorisé à tous ces privilèges : </b> <br/> AccessPublicData<br/><br/>

Example

import HelloAssoApi from 'hello_asso_api';
let defaultClient = HelloAssoApi.ApiClient.instance;
// Configure OAuth2 access token for authorization: OAuth2
let OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new HelloAssoApi.PartenairesApi();
let organizationSlug = "organizationSlug_example"; // String | 
let opts = {
  'notificationType': new HelloAssoApi.HelloAssoApiV5CommonModelsApiNotificationsApiNotificationType() // HelloAssoApiV5CommonModelsApiNotificationsApiNotificationType | Do not specify a notification type to remove the main notification Url
};
apiInstance.partnersMeApiNotificationsOrganizationsOrganizationSlugDelete(organizationSlug, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});

Parameters

Name Type Description Notes
organizationSlug String
notificationType HelloAssoApiV5CommonModelsApiNotificationsApiNotificationType Do not specify a notification type to remove the main notification Url [optional]

Return type

null (empty response body)

Authorization

OAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

partnersMeApiNotificationsOrganizationsOrganizationSlugPut

HelloAssoApiV5CommonModelsApiNotificationsApiUrlNotificationModel partnersMeApiNotificationsOrganizationsOrganizationSlugPut(organizationSlug, opts)

Mise à jour d'une URL de notification liée à une organisation

<br/><br/><b>Votre token doit avoir l'un de ces rôles : </b><br/>OrganizationAdmin<br/><br/>Si vous êtes une <b>association</b>, vous pouvez obtenir ces rôles avec votre client.<br/>Si vous êtes un <b>partenaire</b>, vous pouvez obtenir ces rôles par le flux d'autorisation.<br/><br/><b>Votre clientId doit être autorisé à tous ces privilèges : </b> <br/> AccessPublicData<br/><br/>

Example

import HelloAssoApi from 'hello_asso_api';
let defaultClient = HelloAssoApi.ApiClient.instance;
// Configure OAuth2 access token for authorization: OAuth2
let OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new HelloAssoApi.PartenairesApi();
let organizationSlug = "organizationSlug_example"; // String | 
let opts = {
  'helloAssoApiV5CommonModelsApiNotificationsPostApiUrlNotificationBody': new HelloAssoApi.HelloAssoApiV5CommonModelsApiNotificationsPostApiUrlNotificationBody() // HelloAssoApiV5CommonModelsApiNotificationsPostApiUrlNotificationBody | The body of the request, do not specify a notification type to update the main notification Url
};
apiInstance.partnersMeApiNotificationsOrganizationsOrganizationSlugPut(organizationSlug, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
organizationSlug String
helloAssoApiV5CommonModelsApiNotificationsPostApiUrlNotificationBody HelloAssoApiV5CommonModelsApiNotificationsPostApiUrlNotificationBody The body of the request, do not specify a notification type to update the main notification Url [optional]

Return type

HelloAssoApiV5CommonModelsApiNotificationsApiUrlNotificationModel

Authorization

OAuth2

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/*+json
  • Accept: text/plain, application/json, text/json

partnersMeApiNotificationsPut

HelloAssoApiV5CommonModelsApiNotificationsApiUrlNotificationModel partnersMeApiNotificationsPut(opts)

Mise à jour de l'URL de notification principale

<br/><br/><b>Votre clientId doit être autorisé à tous ces privilèges : </b> <br/> AccessPublicData<br/><br/>

Example

import HelloAssoApi from 'hello_asso_api';
let defaultClient = HelloAssoApi.ApiClient.instance;
// Configure OAuth2 access token for authorization: OAuth2
let OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new HelloAssoApi.PartenairesApi();
let opts = {
  'helloAssoApiV5CommonModelsApiNotificationsPostApiUrlNotificationBody': new HelloAssoApi.HelloAssoApiV5CommonModelsApiNotificationsPostApiUrlNotificationBody() // HelloAssoApiV5CommonModelsApiNotificationsPostApiUrlNotificationBody | The body of the request, do not specify a notification type to update the main notification Url
};
apiInstance.partnersMeApiNotificationsPut(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
helloAssoApiV5CommonModelsApiNotificationsPostApiUrlNotificationBody HelloAssoApiV5CommonModelsApiNotificationsPostApiUrlNotificationBody The body of the request, do not specify a notification type to update the main notification Url [optional]

Return type

HelloAssoApiV5CommonModelsApiNotificationsApiUrlNotificationModel

Authorization

OAuth2

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/*+json
  • Accept: text/plain, application/json, text/json

partnersMeGet

HelloAssoApiV5CommonModelsPartnersPartnerPublicModel partnersMeGet()

Récupération des informations

<br/><br/><b>Votre clientId doit être autorisé à tous ces privilèges : </b> <br/> AccessPublicData<br/><br/>

Example

import HelloAssoApi from 'hello_asso_api';
let defaultClient = HelloAssoApi.ApiClient.instance;
// Configure OAuth2 access token for authorization: OAuth2
let OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new HelloAssoApi.PartenairesApi();
apiInstance.partnersMeGet((error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

This endpoint does not need any parameter.

Return type

HelloAssoApiV5CommonModelsPartnersPartnerPublicModel

Authorization

OAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain, application/json, text/json

partnersMeOrganizationsGet

HelloAssoApiV5CommonModelsCommonResultsWithPaginationModelPartnerOrganizationModel partnersMeOrganizationsGet(opts)

Obtenir toutes les organisations

Liste toutes les organisations liées au partenaire. Les résultats sont classés par date de mise à jour de la visibilité API en ordre croissant. Le nombre total de résultats (ou de pages) n'est pas récupérable, donc les informations de pagination retournées indiqueront toujours -1.<br/><br/><b>Votre clientId doit être autorisé à tous ces privilèges : </b> <br/> AccessPublicData<br/><br/>

Example

import HelloAssoApi from 'hello_asso_api';
let defaultClient = HelloAssoApi.ApiClient.instance;
// Configure OAuth2 access token for authorization: OAuth2
let OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new HelloAssoApi.PartenairesApi();
let opts = {
  'pageSize': 20, // Number | The number of items per page
  'continuationToken': "continuationToken_example" // String | Continuation Token from which we wish to retrieve results
};
apiInstance.partnersMeOrganizationsGet(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
pageSize Number The number of items per page [optional] [default to 20]
continuationToken String Continuation Token from which we wish to retrieve results [optional]

Return type

HelloAssoApiV5CommonModelsCommonResultsWithPaginationModelPartnerOrganizationModel

Authorization

OAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain, application/json, text/json