It's easy for leading or trailing spaces to end up in the API Key and API Secret fields in your Unity plugin - so easy, you have to mention this in your documentation. Why not add the two extra line of code to trim() leading and trailing spaces from these fields before you process them?
Joseph Hicks