Advertisement
Guest User

code

a guest
Jun 17th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1.  
  2. String url="https://site/api/segments/segmentId/contact/contactId/add";
  3. URL serverUrl = new URL(url);
  4. HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();
  5. urlConnection.setRequestMethod("POST");
  6. urlConnection.addRequestProperty("Authorization", getBathicAuthPayLoad());
  7. urlConnection.connect();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement