@@ -69,7 +69,7 @@ public String createSession(Map<String, Collection<String>> params) throws Reque
69
69
70
70
public String getArchive (String archiveId ) throws RequestException {
71
71
String responseString = null ;
72
- String url = this .apiUrl + "/v2/partner /" + this .apiKey + "/archive/" + archiveId ;
72
+ String url = this .apiUrl + "/v2/project /" + this .apiKey + "/archive/" + archiveId ;
73
73
Future <Response > request = this .prepareGet (url ).execute ();
74
74
75
75
try {
@@ -99,7 +99,7 @@ public String getArchive(String archiveId) throws RequestException {
99
99
public String getArchives (int offset , int count ) throws RequestException {
100
100
String responseString = null ;
101
101
// TODO: maybe use a StringBuilder?
102
- String url = this .apiUrl + "/v2/partner /" + this .apiKey + "/archive" ;
102
+ String url = this .apiUrl + "/v2/project /" + this .apiKey + "/archive" ;
103
103
if (offset != 0 || count != 1000 ) {
104
104
url += "?" ;
105
105
if (offset != 0 ) {
@@ -138,7 +138,7 @@ public String startArchive(String sessionId, ArchiveProperties properties)
138
138
String responseString = null ;
139
139
String requestBody = null ;
140
140
// TODO: maybe use a StringBuilder?
141
- String url = this .apiUrl + "/v2/partner /" + this .apiKey + "/archive" ;
141
+ String url = this .apiUrl + "/v2/project /" + this .apiKey + "/archive" ;
142
142
143
143
JsonNodeFactory nodeFactory = JsonNodeFactory .instance ;
144
144
ObjectNode requestJson = nodeFactory .objectNode ();
@@ -189,7 +189,7 @@ public String startArchive(String sessionId, ArchiveProperties properties)
189
189
public String stopArchive (String archiveId ) throws RequestException {
190
190
String responseString = null ;
191
191
// TODO: maybe use a StringBuilder?
192
- String url = this .apiUrl + "/v2/partner /" + this .apiKey + "/archive/" + archiveId + "/stop" ;
192
+ String url = this .apiUrl + "/v2/project /" + this .apiKey + "/archive/" + archiveId + "/stop" ;
193
193
Future <Response > request = this .preparePost (url ).execute ();
194
194
195
195
try {
@@ -224,7 +224,7 @@ public String stopArchive(String archiveId) throws RequestException {
224
224
225
225
public String deleteArchive (String archiveId ) throws RequestException {
226
226
String responseString = null ;
227
- String url = this .apiUrl + "/v2/partner /" + this .apiKey + "/archive/" + archiveId ;
227
+ String url = this .apiUrl + "/v2/project /" + this .apiKey + "/archive/" + archiveId ;
228
228
Future <Response > request = this .prepareDelete (url ).execute ();
229
229
230
230
try {
0 commit comments