I have this curl statement and I'm trying to convert it to something I can use in a java program for testing purposes:
curl -v -k -X POST -H 'Content-Type: application/json' -d '{"auth_data": {"email_password": {"email": "email@email.com", "password": "password"}},"registration_data": { "domain":"Device", "device_name": "name" ,"app_name": "XXX", "app_version": "XXX","device_model": "XXX","os_version": "XXX","device_type": "ABCDEFGHIJ","device_serial": "D01234567890"}, "requested_token_type" : ["bearer"]}' 'https://url.domain.com';