public OvhContact register_company_companyId_contact_POST ( String companyId , String email , String facebook , String firstName , String lastName , String linkedin , Boolean newsletter , OvhNic [ ] otherNics , String phone , String role , String twitter ) throws IOException { String qPath = "/partners/register/company/{companyId}/contact" ; StringBuilder sb = path ( qPath , companyId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "email" , email ) ; addBody ( o , "facebook" , facebook ) ; addBody ( o , "firstName" , firstName ) ; addBody ( o , "lastName" , lastName ) ; addBody ( o , "linkedin" , linkedin ) ; addBody ( o , "newsletter" , newsletter ) ; addBody ( o , "otherNics" , otherNics ) ; addBody ( o , "phone" , phone ) ; addBody ( o , "role" , role ) ; addBody ( o , "twitter" , twitter ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhContact . class ) ; }
Created a new contact for the inscription