It is also possible to pass a "country" parameter that will point to an input field of the country or will directly contain the 3-letter code of the country when there is only one.
Simple case: managing phone number validation for a single country
In this case, simply pass the ISO code (3 letters) of this country as the "country" parameter when calling our API. If this parameter is omitted, the API will only work on France.
Complex case: managing phone number validation for different countries
In this case, an additional "country" parameter will have to be provided when calling our API. This parameter must contain the JQuery selector in the country field.
This country field should return the ISO code on 3 letters of the desired country.