public class JetAPIBulkProductUpload extends JetAPI implements IJetAPIBulkProductUpload
API.REQUEST_TYPE
AUTH_TEST_RESPONSE, config
client, context, lockHost, maxDownloadSize
Constructor and Description |
---|
JetAPIBulkProductUpload(IAPIHttpClient client,
JetConfig config) |
Modifier and Type | Method and Description |
---|---|
FileIdRec |
getJetFileId(String fileId)
Query the status of an uploaded file..
|
BulkUploadAuthRec |
getUploadToken()
Retrieve an upload token for uploading a bulk feed of some sort.
|
IJetAPIResponse |
sendAuthorizedFile(String url,
PostFile file)
Once you receive the url to upload to from getUploadToken(), feed that
into the url argument in this method along with the file to upload..
|
IJetAPIResponse |
sendGetJetFileId(String fileId)
Query the status of an uploaded file..
|
IJetAPIResponse |
sendGetUploadToken()
Retrieve a token for uploading some file.
|
IJetAPIResponse |
sendPostUploadedFiles(String uploadUrl,
String filename,
BulkUploadFileType uploadType)
Get authorization to add an additional file to an existing uploadToken,
AND/OR I'm pretty sure this is required to tell Jet what type of file
was uploaded, and to start the batch import on Jet itself.
|
executeRequest, get, getHeaderBuilder, getJSONHeaderBuilder, getPlainHeaderBuilder, jsonArrayToTokenList, login, post, post, post, put, put, put, setErrorHandler
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get, getHeaderBuilder, getJSONHeaderBuilder, getPlainHeaderBuilder, post, post, post, put, put, put, setErrorHandler
public JetAPIBulkProductUpload(IAPIHttpClient client, JetConfig config)
public IJetAPIResponse sendGetUploadToken() throws APIException, JetException
sendGetUploadToken
in interface IJetAPIBulkProductUpload
APIException
JetException
public BulkUploadAuthRec getUploadToken() throws APIException, JetException
getUploadToken
in interface IJetAPIBulkProductUpload
APIException
JetException
public IJetAPIResponse sendAuthorizedFile(String url, PostFile file) throws APIException, JetException
sendAuthorizedFile
in interface IJetAPIBulkProductUpload
url
- Url from getUploadToken()APIException
JetException
public IJetAPIResponse sendPostUploadedFiles(String uploadUrl, String filename, BulkUploadFileType uploadType) throws APIException, JetException
sendPostUploadedFiles
in interface IJetAPIBulkProductUpload
file
- File to sendfilename
- The basename of the local file sent to jet.
If this does not match the name sent via sendAuthorizedFile(), then
jet will say "not found" in the partner portal and nothing will be found.uploadType
- File typeAPIException
JetException
public IJetAPIResponse sendGetJetFileId(String fileId) throws APIException, JetException
sendGetJetFileId
in interface IJetAPIBulkProductUpload
fileId
- Jet File idAPIException
JetException
public FileIdRec getJetFileId(String fileId) throws APIException, JetException
getJetFileId
in interface IJetAPIBulkProductUpload
fileId
- Jet File idAPIException
JetException
Copyright © 2017. All rights reserved.