Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String url="https://site/api/segments/segmentId/contact/contactId/add";
- URL serverUrl = new URL(url);
- HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();
- urlConnection.setRequestMethod("POST");
- urlConnection.addRequestProperty("Authorization", getBathicAuthPayLoad());
- urlConnection.connect();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement