GENDER API JAVASCRIPT

Installera först vårt bibliotek med composer:

Se fullständig klientdokumentation här:

https://github.com/markus-perl/gender-api-client

Installera först vårt bibliotek med npm:

Se fullständig klientdokumentation här:

https://github.com/markus-perl/gender-api-client-npm

Installera först vårt bibliotek med npm:

$ npm i gender-api.com-client --save
try {
    var GenderApi = require('gender-api.com-client');

    var genderApiClient = new GenderApi.Client('your api key');

    genderApiClient.getByFirstName('theresa', function (response) {
        console.log(response.gender); //female
        console.log(response.accuracy); //98
    });

    genderApiClient.getByFirstNameAndCountry('john', 'US', function (response) {
        console.log(response.gender); //male
        console.log(response.accuracy); //99
    });

}
catch(e) {
    console.log('Error:', e);
}

Se fullständig klientdokumentation här:

https://github.com/markus-perl/gender-api-client-npm

Ladda ner ett exempelprojekt här:

Dokumentation:

https://github.com/microknights/Gender-API
Chatt