This repository was archived by the owner on Oct 17, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
src/main/java/com/hellosign/sdk Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -985,7 +985,7 @@ public ApiApp createApiApp(ApiApp app) throws HelloSignException {
985985 * HTTP request or the JSON response.
986986 */
987987 public boolean deleteApiApp (String clientId ) throws HelloSignException {
988- String url = API_APP_URI + "/" + clientId ;
988+ String url = BASE_URI + API_APP_URI + "/" + clientId ;
989989 return HttpURLConnection .HTTP_NO_CONTENT == httpClient .withAuth (auth ).delete (url ).asHttpCode ();
990990 }
991991
@@ -1001,8 +1001,8 @@ public ApiApp updateApiApp(ApiApp app) throws HelloSignException {
10011001 if (!app .hasClientId ()) {
10021002 throw new HelloSignException ("Cannot update an ApiApp without a client ID. Create one first!" );
10031003 }
1004- String url = API_APP_URI + "/" + app .getClientId ();
1005- return new ApiApp (httpClient .withAuth (auth ).withPostFields (app .getPostFields ()).put (url ).asJson ());
1004+ String url = BASE_URI + API_APP_URI + "/" + app .getClientId ();
1005+ return new ApiApp (httpClient .withAuth (auth ).withPostFields (app .getPostFields ()).post (url ).asJson ());
10061006 }
10071007
10081008 /**
You can’t perform that action at this time.
0 commit comments