worldia / textmaster-api

Simple PHP client for the Textmaster API
1 stars 5 forks source link

Project language code is only 2 characters in API call #59

Closed Pitoune closed 8 years ago

Pitoune commented 8 years ago

@aponsin When I do a call API to retrieve a Project the language code is only 2 characters. How can I know if the language is en-us or en-gb ?

aponsin commented 8 years ago

Can you provide the project id you are referencing to ?

Pitoune commented 8 years ago

Sure: id: 573acf6c955957384d66fbfe name: Projet de type "product" du "17/05/2016" reference: TR-23A-70827

aponsin commented 8 years ago

Ok, this is a bug on us. For compatibility reason we do expose the language code as the very old 2 letter version we used too in the past. We can't break that backward compatibility. I'll discuss with my API engineer tomorrow and get back to you with a solution (most likely adding a new field to expose those missing information).

Pitoune commented 8 years ago

OK thanks !

aponsin commented 8 years ago

Ok you should now be able to use the following fields names instead:

We'll deprecated the other ones and update the documentation.

Pitoune commented 8 years ago

It works ! Thanks a lot