GENDER API PHP-LEGACY

먼저 composer로 우리 라이브러리를 설치해 줘:

전체 클라이언트 문서는 여기에서 확인해 줘:

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

function getGender($firstname) {
  $myKey = 'insert your server key here';
  $data = json_decode(file_get_contents(
  'https://gender-api.com/get?key=' .
  $myKey .
  '&name=' . urlencode($firstname)));
  return $data->gender;
  }

  echo getGender('markus'); //Output: male

먼저 npm으로 우리 라이브러리를 설치해 줘:

전체 클라이언트 문서는 여기에서 확인해 줘:

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

먼저 npm으로 우리 라이브러리를 설치해 줘:

전체 클라이언트 문서는 여기에서 확인해 줘:

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

채팅