Documentation of the API

RaphaelRIVIERE edited this page Jan 22, 2018 · 4 revisions

French translation: Documentation de l'API

Get : Recover information

From the API you have the possibility to recover different information from Communecter :

  • [citoyens] Citizen
  • [organizations] Organization
  • [projects] Project
  • [events] Event
  • [needs] Need
  • [news] News

Retrieve all features

/api/[project || person || organization || event || need || news]/get/

Example : /api/organization/get/

To see the description of the result go in the heading "Les attributs"

Setting the search

You have the possibility to add parameters to fine-tune your search :

  • [id] Identifiant
  • [tags] Tags
  • [insee] Code Insee (L'Institut national de la statistique et des études économiques)
  • [format] Format

Retrieve an entity via its identifier

/ph/communecter/data/get/type/(projects || citoyens || organizations || events || news)/id/[id_entity]

Example : /ph/communecter/data/get/type/organizations/id/57186ed894ef47210d7b242d

Search by tags

You can set the search for entities according to tags. You can add multiple tags that must be separated by a comma. By default, if you put multiple tags, it is enough for the entity to have one of these tags to be displayed. If you want the entity to have all the tags then you have to set the following parameter : /multiTags/true

Example :

  • /ph/communecter/data/get/type/organizations/tags/NuitDebout
  • /ph/communecter/data/get/type/organizations/tags/NuitDebout,Commun
  • /ph/communecter/data/get/type/organizations/tags/NuitDebout,Commun/multiTags/true

Search by INSEE (L'Institut national de la statistique et des études économiques)

If you know the INSEE code of your municipality, you can search via this code Insee. Example : /ph/communecter/data/get/type/organizations/insee/33402

Formats

The API takes into account different formats for the result. By default, this is the format that Communecter proposes. We also take into account the following formats :

  • SCHEMA /ph/communecter/data/get/type/organizations/format/schema
  • PLP /ph/communecter/data/get/type/citoyens/format/plp
  • RSS /ph/api/news/get/format/rss
  • JSONFEED /ph/api/news/get/format/jsonfeed
  • KML /ph/api/event/get/format/kml
  • GEOJSON /ph/api/person/get/format/geojson
  • CSV /ph/api/person/get/format/csv

Attention some formats does not necessarily return all entities, here is the list for each format.

COMMUNECTER

  • [citoyens] Citoyen
  • [organizations] Organization
  • [projects] Project
  • [events] Event
  • [needs] Need
  • [news] News

SCHEMA

  • [citoyens] Citoyen
  • [organizations] Organization
  • [projects] Project
  • [events] Event
  • [needs] Need
  • City
  • [news] News

PLP

  • [citoyens] Citoyen

KML

  • [citoyens] Citoyen
  • [organizations] Organization
  • [projects] Project
  • [events] Event
  • [needs] Need
  • City
  • [news] News

GEOJSON

  • [citoyens] Citoyen
  • [organizations] Organization
  • [projects] Project
  • [events] Event
  • [needs] Need
  • City
  • [news] News

CSV

  • [organizations] Organization

RSS

  • [news] news

JSONFEED

  • [news] news

Attributes

Here you will have the description of all the attributes of the different entities that are returned via the API.

Format Communecter

Example : meta :

  • limit Number of entities returned
  • next url returning the following entities
  • previous url returning the previous list of entities

entities all entities in their identifiers in key

  • name Name of entity
  • image Url of the profile image of the entity
  • urlCommunecter Url of the file of that entity on Communecter
  • urlApi Url that returns the information of an entity via the API
  • address
    • streetAddress Number and name of street
    • postalCode Postal code
    • addressLocality Name of the municipality
    • addressCountry Name of the country
    • codeInsee Insee code of the commune
  • geo
    • latitude
    • longitude
  • geoPosition Other format for the geographic position of the entity
  • shortDescription Brief description of the entity
  • description Description of entity.
  • email The email of the entity.
  • phone All the telephone numbers of the entity (fixed, mobile and fax)
  • socialNetwork All the links to the other social networks of the entity
  • tags All tags associated with the entity
  • links The different links the entity has with the others :
    • memberOf List of organizations whose entity is a member
    • projects List of projects whose entity contributes
    • events List of events whose entity is invited or participates
    • followers List of citizens whose entity follows.
    • members List of citizens of the entity.
    • needs List of the entity's needs.

Convert : Retrieving data in PH onthology

Since ther is an the API, you have the possibility to convert the data in different format that you possess directly in onthology PH.

  • [geojson] GeoJson

  • [wikipedia] Json from the Wikidata API

  • [datagouv] Json from the Data.gouv API

  • [osm] Json from the Open Street Map API

  • [ods] Json from the OpenDataSoft API (only the SIRENE database is queried)

  • [datanova] Json from the Datanova API

  • [poleemploi] Json from the API of Pôle Emploi

  • [educstruct] Json from the ScanR API (search structures)

  • [educetab] Json from the ScanR API (institutions involved in the research)

  • [educmembre] Json from the API of ScanR (member of the universities of France)

  • [educecole] Json from the API of ScanR (accredited doctoral school)

Get the ontology ph for a given type of element via a url

/ph/communecter/api/convert/geojson/type/[organizations || citoyens || events || projects]?url="http://votreurl"

Example : `/ph/communecter/api/convert/type/organizations?url=http://umap.openstreetmap.fr/en/datalayer/276610/

Special cases: the Umap

The API can convert the geojson data of a given umap via the parameter "url"

Example : /ph/communecter/api/convert/type/organizations?url=http://umap.openstreetmap.fr/fr/map/carte-pour-faire-des-tests_62176#13/44.7825/-0.3700

You can also set the short url of an umap (visible by pressing the share button to the left of the umap):

Example : /ph/communecter/api/convert/type/organizations?url=http://u.osmfr.org/m/62176/

Attention for the moment, it is necessary that the url is in "http" and not in "https", remove the "s" if it is the case.

Obtain the ontology ph for a given data type of element via a file

Send to the API the "file" parameter via POST method. (using curl or RESTED for example)

Get ph ontology for a url querying an external API

/ph/communecter/api/convert/[type interop]?url="http://votreurlinterop"

Example Wikidata :

/ph/api/convert/wikipedia?url=https://www.wikidata.org/wiki/Special:EntityData/[wikidataID].json

For the city of Saint-Louis whose WikidataID is Q47045, the example would be :

/ph/api/convert/wikipedia?url=https://www.wikidata.org/wiki/Special:EntityData/Q47045.json

We will be able to recover the wikidataID of the city, filtering all the elements which have as their property P: 131 (located in the administrative territorial entity) the wikidataID of the city.

Example Data.gouv :

/ph/api/convert/datagouv?url=https://www.data.gouv.fr/api/1/spatial/zone/fr/town/[insee]/datasets

For the town of Rodez, whose INSEE is 12202, the example would be :

/ph/api/convert/datagouv?url=https://www.data.gouv.fr/api/1/spatial/zone/fr/town/12202/datasets

It will then be possible to obtain all the datasets of the city mentioned and finally to scan the data from the different datasets of the city.

Example OpenStreetMap :

/ph/api/convert/osm?url=http://overpass-api.de/api/interpreter?data=[out:json];node[%22name%22](poly:[geoshape]);out;

For the city of Saint-Louis, the example would be :

/ph/api/convert/osm?url=http://overpass-api.de/api/interpreter?data=[out:json];node[%22name%22](poly:%22-21.303505996763%2055.403919253998%20-21.292626813288%2055.391189163162%20-21.282029142394%2055.381522536523%20-21.256155186265%2055.392395046639%20-21.232012804782%2055.387888015185%20-21.211100938923%2055.390619722192%20-21.199480966855%2055.382654775478%20-21.185882138486%2055.385961778627%20-21.173346518752%2055.389949958731%20-21.16327583783%2055.399563417107%20-21.14709868917%2055.405379688232%20-21.166028899095%2055.414700890276%20-21.184085220909%2055.432085218794%20-21.190290936422%2055.440880800108%20-21.195166490948%2055.462318490892%20-21.237553168259%2055.459769285867%20-21.258726107298%2055.463692709631%20-21.286021128961%2055.455515913879%20-21.294777773557%2055.419916682666%20-21.303505996763%2055.403919253998%22);out;

We will be able to filter all the nodes that are present in the provided geoshape and finally filter all the nodes that has at least the tag "name"

Example OpenDataSoft :

/ph/api/convert/ods?url=https://data.opendatasoft.com/api/records/1.0/search/?dataset=sirene%40public&sort=datemaj&facet=categorie&facet=proden&facet=libapen&facet=siege&facet=libreg_new&facet=saisonat&facet=libtefen&facet=depet&facet=libnj&facet=libtca&facet=liborigine&rows=30&start=0&geofilter.polygon=[geofilter]

For the city of Saint-Louis, the example would be :

/ph/api/convert/ods?url=https://data.opendatasoft.com/api/records/1.0/search/?dataset=sirene%40public&sort=datemaj&facet=categorie&facet=proden&facet=libapen&facet=siege&facet=libreg_new&facet=saisonat&facet=libtefen&facet=depet&facet=libnj&facet=libtca&facet=liborigine&rows=30&start=0&geofilter.polygon=(-21.303505996763,55.403919253998),(-21.292626813288,55.391189163162),(-21.282029142394,55.381522536523),(-21.256155186265,55.392395046639),(-21.232012804782,55.387888015185),(-21.211100938923,55.390619722192),(-21.199480966855,55.382654775478),(-21.185882138486,55.385961778627),(-21.173346518752,55.389949958731),(-21.16327583783,55.399563417107),(-21.14709868917,55.405379688232),(-21.166028899095,55.414700890276),(-21.184085220909,55.432085218794),(-21.190290936422,55.440880800108),(-21.195166490948,55.462318490892),(-21.237553168259,55.459769285867),(-21.258726107298,55.463692709631),(-21.286021128961,55.455515913879),(-21.294777773557,55.419916682666),(-21.303505996763,55.403919253998)

We will be able to filter all the elements present in the geofilter provides.

We can filter the elements by topic by mentioning refine.libapen in the url.

The following example does the same as the previous example except that it filters all items that are in the field of activity : Dental practice

/ph/api/convert/ods?url=https://data.opendatasoft.com/api/records/1.0/search/?dataset=sirene%40public&facet=categorie&facet=proden&facet=libapen&facet=siege&facet=libreg_new&facet=saisonat&facet=libtefen&facet=depet&facet=libnj&facet=libtca&facet=liborigine&rows=30&start=0&geofilter.polygon=(44.810795852605,-0.5738778170842),(44.817148298105,-0.57643460444186),(44.823910193873,-0.58695822406613),(44.818476638462,-0.60304723869607),(44.822474304509,-0.61064859861704),(44.824937843733,-0.61415033833008),(44.835177466959,-0.61079419661495),(44.841384923705,-0.62771243191386),(44.860667021743,-0.63833642556746),(44.871658097695,-0.63105127891779),(44.86227970331,-0.61630176568479),(44.854215265872,-0.59460939385687),(44.865671076253,-0.57646019656194),(44.869188961886,-0.57608874140575),(44.909402227434,-0.58088555560083),(44.908480410411,-0.57648917779388),(44.916666965125,-0.54773554113942),(44.889099273803,-0.53553255107571),(44.869138522062,-0.54141014437767),(44.868086689933,-0.53680669655034),(44.861267174723,-0.53784686147751),(44.848134506953,-0.53761462401784),(44.842390488778,-0.5422310311368),(44.836291776079,-0.54665943781219),(44.829021270567,-0.53642317794196),(44.822772234064,-0.53766321563778),(44.813135278103,-0.55606047183132),(44.810795852605,-0.5738778170842)&refine.libapen=Pratique%20dentaire

Example Datanova :

/ph/api/convert/datanova?url=https://datanova.laposte.fr/api/records/1.0/search/?dataset=laposte_poincont&rows=30&start=0&geofilter.polygon=[geofilter]

For the city of Bordeaux, the example would be :

/ph/api/convert/datanova?url=https://datanova.laposte.fr/api/records/1.0/search/?dataset=laposte_poincont&rows=30&start=0&geofilter.polygon=(44.810795852605,-0.5738778170842),(44.817148298105,-0.57643460444186),(44.823910193873,-0.58695822406613),(44.818476638462,-0.60304723869607),(44.822474304509,-0.61064859861704),(44.824937843733,-0.61415033833008),(44.835177466959,-0.61079419661495),(44.841384923705,-0.62771243191386),(44.860667021743,-0.63833642556746),(44.871658097695,-0.63105127891779),(44.86227970331,-0.61630176568479),(44.854215265872,-0.59460939385687),(44.865671076253,-0.57646019656194),(44.869188961886,-0.57608874140575),(44.909402227434,-0.58088555560083),(44.908480410411,-0.57648917779388),(44.916666965125,-0.54773554113942),(44.889099273803,-0.53553255107571),(44.869138522062,-0.54141014437767),(44.868086689933,-0.53680669655034),(44.861267174723,-0.53784686147751),(44.848134506953,-0.53761462401784),(44.842390488778,-0.5422310311368),(44.836291776079,-0.54665943781219),(44.829021270567,-0.53642317794196),(44.822772234064,-0.53766321563778),(44.813135278103,-0.55606047183132),(44.810795852605,-0.5738778170842)

We retrieve all the La Poste signs present in the given geofilter.

Example Pôle Emploi :

The url to pass as a parameter is of type :

/ph/api/convert?url=https://api.emploi-store.fr/partenaire/infotravail/v1/datastore_search_sql?sql=SELECT%20%2A%20FROM%20%22421692f5%2Df342%2D4223%2D9c51%2D72a27dcaf51e%22%20WHERE%20%22CITY_CODE%22=%27[insee]%27%

For the city of Saint-Louis, the url would be :

/ph/api/convert?url=https://api.emploi-store.fr/partenaire/infotravail/v1/datastore_search_sql?sql=SELECT%20%2A%20FROM%20%22421692f5%2Df342%2D4223%2D9c51%2D72a27dcaf51e%22%20WHERE%20%22CITY_CODE%22=%2797414%27%

The whole process is as follows :

  • We ask to have a token :

https://entreprise.pole-emploi.fr/connexion/oauth2/access_token?realm=%2Fpartenaire

with POST parameter :

  • grant_type = client_credential
  • client_id = [identifiant]
  • scope = [mot de passe]

Then the query is started :

https://api.emploi-store.fr/partenaire/infotravail/v1/datastore_search_sql?sql=SELECT%20%2A%20FROM%20%22421692f5%2Df342%2D4223%2D9c51%2D72a27dcaf51e%22%20WHERE%20%22CITY_CODE%22=%27[insee]%27%

For the city of Saint-Louis :

https://api.emploi-store.fr/partenaire/infotravail/v1/datastore_search_sql?sql=SELECT%20%2A%20FROM%20%22421692f5%2Df342%2D4223%2D9c51%2D72a27dcaf51e%22%20WHERE%20%22CITY_CODE%22=%2797414%27%

It is necessary to indicate in POST parameter its identifiers of the Pôle Emploi (registration on https://www.emploi-store-dev.fr/) and also to put a token in the HEADER : "Authorization: Bearer [token]".

We thus recover all the vacancies filtered by INSEE.

Example ScanR :

ScanR includes 4 datasets that can be queried :

  • Public research structure :

/ph/api/convert/educstruct?url=https://data.enseignementsup-recherche.gouv.fr/api/records/1.0/search/?dataset=fr-esr-structures-recherche-publiques-actives&facet=numero_national_de_structure&facet=annee_de_creation&facet=tutelles&facet=type_de_tutelle&facet=nature_de_tutelle&facet=nature_de_structure&facet=type_de_structure&facet=niveau_de_structure&facet=domaine_scientifique&facet=panel_erc&facet=theme_de_recherche&facet=commune&facet=unite_urbaine&facet=departement&facet=region&facet=pays&facet=comue&facet=region_avant_2016&rows=30&start=0&geofilter.polygon=[geofilter]

For the city of Saint-Louis, the example would be :

/ph/api/convert/educstruct?url=https://data.enseignementsup-recherche.gouv.fr/api/records/1.0/search/?dataset=fr-esr-structures-recherche-publiques-actives&facet=numero_national_de_structure&facet=annee_de_creation&facet=tutelles&facet=type_de_tutelle&facet=nature_de_tutelle&facet=nature_de_structure&facet=type_de_structure&facet=niveau_de_structure&facet=domaine_scientifique&facet=panel_erc&facet=theme_de_recherche&facet=commune&facet=unite_urbaine&facet=departement&facet=region&facet=pays&facet=comue&facet=region_avant_2016&rows=30&start=0&geofilter.polygon=(44.810795852605,-0.5738778170842),(44.817148298105,-0.57643460444186),(44.823910193873,-0.58695822406613),(44.818476638462,-0.60304723869607),(44.822474304509,-0.61064859861704),(44.824937843733,-0.61415033833008),(44.835177466959,-0.61079419661495),(44.841384923705,-0.62771243191386),(44.860667021743,-0.63833642556746),(44.871658097695,-0.63105127891779),(44.86227970331,-0.61630176568479),(44.854215265872,-0.59460939385687),(44.865671076253,-0.57646019656194),(44.869188961886,-0.57608874140575),(44.909402227434,-0.58088555560083),(44.908480410411,-0.57648917779388),(44.916666965125,-0.54773554113942),(44.889099273803,-0.53553255107571),(44.869138522062,-0.54141014437767),(44.868086689933,-0.53680669655034),(44.861267174723,-0.53784686147751),(44.848134506953,-0.53761462401784),(44.842390488778,-0.5422310311368),(44.836291776079,-0.54665943781219),(44.829021270567,-0.53642317794196),(44.822772234064,-0.53766321563778),(44.813135278103,-0.55606047183132),(44.810795852605,-0.5738778170842)

  • Institution involved in research :

/ph/api/convert/educetab?url=https://data.enseignementsup-recherche.gouv.fr/api/records/1.0/search/?dataset=fr-esr-etablissements-publics-prives-impliques-recherche-developpement&facet=siren&facet=libelle&facet=date_de_creation&facet=categorie&facet=libelle_ape&facet=tranche_etp&facet=categorie_juridique&facet=wikidata&facet=commune&facet=unite_urbaine&facet=departement&facet=region&facet=pays&facet=badge&facet=region_avant_2016&rows=30&start=0&geofilter.polygon=[geofilter]

For the city of Bordeaux, the example would be :

/ph/api/convert/educetab?url=https://data.enseignementsup-recherche.gouv.fr/api/records/1.0/search/?dataset=fr-esr-etablissements-publics-prives-impliques-recherche-developpement&facet=siren&facet=libelle&facet=date_de_creation&facet=categorie&facet=libelle_ape&facet=tranche_etp&facet=categorie_juridique&facet=wikidata&facet=commune&facet=unite_urbaine&facet=departement&facet=region&facet=pays&facet=badge&facet=region_avant_2016&rows=30&start=0&geofilter.polygon=(44.810795852605,-0.5738778170842),(44.817148298105,-0.57643460444186),(44.823910193873,-0.58695822406613),(44.818476638462,-0.60304723869607),(44.822474304509,-0.61064859861704),(44.824937843733,-0.61415033833008),(44.835177466959,-0.61079419661495),(44.841384923705,-0.62771243191386),(44.860667021743,-0.63833642556746),(44.871658097695,-0.63105127891779),(44.86227970331,-0.61630176568479),(44.854215265872,-0.59460939385687),(44.865671076253,-0.57646019656194),(44.869188961886,-0.57608874140575),(44.909402227434,-0.58088555560083),(44.908480410411,-0.57648917779388),(44.916666965125,-0.54773554113942),(44.889099273803,-0.53553255107571),(44.869138522062,-0.54141014437767),(44.868086689933,-0.53680669655034),(44.861267174723,-0.53784686147751),(44.848134506953,-0.53761462401784),(44.842390488778,-0.5422310311368),(44.836291776079,-0.54665943781219),(44.829021270567,-0.53642317794196),(44.822772234064,-0.53766321563778),(44.813135278103,-0.55606047183132),(44.810795852605,-0.5738778170842)

  • Members of the universities of France :

/ph/api/convert/educmembre?url=https://data.enseignementsup-recherche.gouv.fr/api/records/1.0/search/?dataset=fr-esr-iuf-les-membres&rows=30&start=0&geofilter.polygon=[geofilter]

For the city of Bordeaux, the example would be :

/ph/api/convert/educmembre?url=https://data.enseignementsup-recherche.gouv.fr/api/records/1.0/search/?dataset=fr-esr-iuf-les-membres&rows=30&start=0&geofilter.polygon=(44.810795852605,-0.5738778170842),(44.817148298105,-0.57643460444186),(44.823910193873,-0.58695822406613),(44.818476638462,-0.60304723869607),(44.822474304509,-0.61064859861704),(44.824937843733,-0.61415033833008),(44.835177466959,-0.61079419661495),(44.841384923705,-0.62771243191386),(44.860667021743,-0.63833642556746),(44.871658097695,-0.63105127891779),(44.86227970331,-0.61630176568479),(44.854215265872,-0.59460939385687),(44.865671076253,-0.57646019656194),(44.869188961886,-0.57608874140575),(44.909402227434,-0.58088555560083),(44.908480410411,-0.57648917779388),(44.916666965125,-0.54773554113942),(44.889099273803,-0.53553255107571),(44.869138522062,-0.54141014437767),(44.868086689933,-0.53680669655034),(44.861267174723,-0.53784686147751),(44.848134506953,-0.53761462401784),(44.842390488778,-0.5422310311368),(44.836291776079,-0.54665943781219),(44.829021270567,-0.53642317794196),(44.822772234064,-0.53766321563778),(44.813135278103,-0.55606047183132),(44.810795852605,-0.5738778170842)

  • List of accredited doctoral schools

/ph/api/convert/educecole?url=https://data.enseignementsup-recherche.gouv.fr/api/records/1.0/search/?dataset=fr-esr-ecoles_doctorales_annuaire&facet=numero&facet=groupe_disciplinaire&facet=toutes_les_disciplines&facet=discipline_principale&facet=localisation&facet=liste_tous_etablissements&facet=laboratoires_rattaches&facet=annee_de_creation&facet=annee_accreditation&facet=etablissement_support&facet=liste_codes_tous_etablissements&facet=identifiants_des_laboratoires&facet=libelle_unite_urbaine&facet=libelle_departement&facet=libelle_academie&facet=libelle_region&rows=30&start=0&geofilter.polygon=[geofilter]

For the city of Bordeaux, the example would be :

/ph/api/convert/educecole?url=https://data.enseignementsup-recherche.gouv.fr/api/records/1.0/search/?dataset=fr-esr-ecoles_doctorales_annuaire&facet=numero&facet=groupe_disciplinaire&facet=toutes_les_disciplines&facet=discipline_principale&facet=localisation&facet=liste_tous_etablissements&facet=laboratoires_rattaches&facet=annee_de_creation&facet=annee_accreditation&facet=etablissement_support&facet=liste_codes_tous_etablissements&facet=identifiants_des_laboratoires&facet=libelle_unite_urbaine&facet=libelle_departement&facet=libelle_academie&facet=libelle_region&rows=30&start=0&geofilter.polygon=(44.810795852605,-0.5738778170842),(44.817148298105,-0.57643460444186),(44.823910193873,-0.58695822406613),(44.818476638462,-0.60304723869607),(44.822474304509,-0.61064859861704),(44.824937843733,-0.61415033833008),(44.835177466959,-0.61079419661495),(44.841384923705,-0.62771243191386),(44.860667021743,-0.63833642556746),(44.871658097695,-0.63105127891779),(44.86227970331,-0.61630176568479),(44.854215265872,-0.59460939385687),(44.865671076253,-0.57646019656194),(44.869188961886,-0.57608874140575),(44.909402227434,-0.58088555560083),(44.908480410411,-0.57648917779388),(44.916666965125,-0.54773554113942),(44.889099273803,-0.53553255107571),(44.869138522062,-0.54141014437767),(44.868086689933,-0.53680669655034),(44.861267174723,-0.53784686147751),(44.848134506953,-0.53761462401784),(44.842390488778,-0.5422310311368),(44.836291776079,-0.54665943781219),(44.829021270567,-0.53642317794196),(44.822772234064,-0.53766321563778),(44.813135278103,-0.55606047183132),(44.810795852605,-0.5738778170842)

#REST Services

  • Almost every actions could be exposed as a REST service.

#Documentation about REST Services

Register a new user

  • url : xxxxx.communecter.org/communecter/person/register

  • params in the post :

    • name string
    • username string. Unique on the plateform
    • email well formated email
    • cp existing postalCode
    • geoPosLatitude float
    • geoPosLongitude float
    • pwd : non encrypted password
    • city String Insee code
    • pendingUserId String. If the user is already in database (he was invited and his profile is temporary), its identifier is passed as a parameter. In this case the user is not created, but it is updated.
  • Retour (json) :

    • result boolean
    • msg String : error message
    • id identifier of the newly created user.
  • Function :

    • The user is created in the database.
    • It has not yet been validated and can not be logged
    • An email is sent to him with a validation link to activate his account
    • In beta, there is a betaTester flag that is set to filter beta tester users. By default, it is false.

The code used here is : citizenToolKit/controllers/person/RegisterAction.php (dead link)

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.