shirioko/WhatsAPI — pull request #11 by adlerweb (2013-06-13 13:48:58+00:00)
Title: Detect country/language by phone number if not supplied by the user

requestCode() currently relys on user input for country and language. This patch extends the existing CSV-Lookup in dissectPhone() to return (in addition to the already included country name) also its ISO3166 coutry code and the ISO639-1 code for the nations primary language. Using this requestCode() will try to automatically detect the needed arguments if not given by the user.

Both ISO-codes where parsed from wikipedia, i checked several large nations and they looked ok.