@@ -1811,6 +1811,137 @@ public okhttp3.Call ebayListMarketsAsync(final ApiCallback<Object> _callback) th
18111811 localVarApiClient .executeAsync (localVarCall , localVarReturnType , _callback );
18121812 return localVarCall ;
18131813 }
1814+ /**
1815+ * Build call for ebaySearchByImage
1816+ * @param requestBody (required)
1817+ * @param _callback Callback for upload/download progress
1818+ * @return Call to execute
1819+ * @throws ApiException If fail to serialize the request body object
1820+ * @http.response.details
1821+ <table border="1">
1822+ <caption>Response Details</caption>
1823+ <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
1824+ <tr><td> 200 </td><td> Successful Response </td><td> - </td></tr>
1825+ <tr><td> 422 </td><td> Validation Error </td><td> - </td></tr>
1826+ </table>
1827+ */
1828+ public okhttp3 .Call ebaySearchByImageCall (Map <String , Object > requestBody , final ApiCallback _callback ) throws ApiException {
1829+ String basePath = null ;
1830+ // Operation Servers
1831+ String [] localBasePaths = new String [] { };
1832+
1833+ // Determine Base Path to Use
1834+ if (localCustomBaseUrl != null ){
1835+ basePath = localCustomBaseUrl ;
1836+ } else if ( localBasePaths .length > 0 ) {
1837+ basePath = localBasePaths [localHostIndex ];
1838+ } else {
1839+ basePath = null ;
1840+ }
1841+
1842+ Object localVarPostBody = requestBody ;
1843+
1844+ // create path and map variables
1845+ String localVarPath = "/v1/ebay/search/by-image" ;
1846+
1847+ List <Pair > localVarQueryParams = new ArrayList <Pair >();
1848+ List <Pair > localVarCollectionQueryParams = new ArrayList <Pair >();
1849+ Map <String , String > localVarHeaderParams = new HashMap <String , String >();
1850+ Map <String , String > localVarCookieParams = new HashMap <String , String >();
1851+ Map <String , Object > localVarFormParams = new HashMap <String , Object >();
1852+
1853+ final String [] localVarAccepts = {
1854+ "application/json"
1855+ };
1856+ final String localVarAccept = localVarApiClient .selectHeaderAccept (localVarAccepts );
1857+ if (localVarAccept != null ) {
1858+ localVarHeaderParams .put ("Accept" , localVarAccept );
1859+ }
1860+
1861+ final String [] localVarContentTypes = {
1862+ "application/json"
1863+ };
1864+ final String localVarContentType = localVarApiClient .selectHeaderContentType (localVarContentTypes );
1865+ if (localVarContentType != null ) {
1866+ localVarHeaderParams .put ("Content-Type" , localVarContentType );
1867+ }
1868+
1869+ String [] localVarAuthNames = new String [] { "ApiKeyAuth" };
1870+ return localVarApiClient .buildCall (basePath , localVarPath , "POST" , localVarQueryParams , localVarCollectionQueryParams , localVarPostBody , localVarHeaderParams , localVarCookieParams , localVarFormParams , localVarAuthNames , _callback );
1871+ }
1872+
1873+ @ SuppressWarnings ("rawtypes" )
1874+ private okhttp3 .Call ebaySearchByImageValidateBeforeCall (Map <String , Object > requestBody , final ApiCallback _callback ) throws ApiException {
1875+ // verify the required parameter 'requestBody' is set
1876+ if (requestBody == null ) {
1877+ throw new ApiException ("Missing the required parameter 'requestBody' when calling ebaySearchByImage(Async)" );
1878+ }
1879+
1880+ return ebaySearchByImageCall (requestBody , _callback );
1881+
1882+ }
1883+
1884+ /**
1885+ * Search by image
1886+ * Search active listings by image, the way eBay's camera icon does. No ``sort_by``: eBay ignores it on a visual results page.
1887+ * @param requestBody (required)
1888+ * @return Object
1889+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
1890+ * @http.response.details
1891+ <table border="1">
1892+ <caption>Response Details</caption>
1893+ <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
1894+ <tr><td> 200 </td><td> Successful Response </td><td> - </td></tr>
1895+ <tr><td> 422 </td><td> Validation Error </td><td> - </td></tr>
1896+ </table>
1897+ */
1898+ public Object ebaySearchByImage (Map <String , Object > requestBody ) throws ApiException {
1899+ ApiResponse <Object > localVarResp = ebaySearchByImageWithHttpInfo (requestBody );
1900+ return localVarResp .getData ();
1901+ }
1902+
1903+ /**
1904+ * Search by image
1905+ * Search active listings by image, the way eBay's camera icon does. No ``sort_by``: eBay ignores it on a visual results page.
1906+ * @param requestBody (required)
1907+ * @return ApiResponse<Object>
1908+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
1909+ * @http.response.details
1910+ <table border="1">
1911+ <caption>Response Details</caption>
1912+ <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
1913+ <tr><td> 200 </td><td> Successful Response </td><td> - </td></tr>
1914+ <tr><td> 422 </td><td> Validation Error </td><td> - </td></tr>
1915+ </table>
1916+ */
1917+ public ApiResponse <Object > ebaySearchByImageWithHttpInfo (Map <String , Object > requestBody ) throws ApiException {
1918+ okhttp3 .Call localVarCall = ebaySearchByImageValidateBeforeCall (requestBody , null );
1919+ Type localVarReturnType = new TypeToken <Object >(){}.getType ();
1920+ return localVarApiClient .execute (localVarCall , localVarReturnType );
1921+ }
1922+
1923+ /**
1924+ * Search by image (asynchronously)
1925+ * Search active listings by image, the way eBay's camera icon does. No ``sort_by``: eBay ignores it on a visual results page.
1926+ * @param requestBody (required)
1927+ * @param _callback The callback to be executed when the API call finishes
1928+ * @return The request call
1929+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
1930+ * @http.response.details
1931+ <table border="1">
1932+ <caption>Response Details</caption>
1933+ <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
1934+ <tr><td> 200 </td><td> Successful Response </td><td> - </td></tr>
1935+ <tr><td> 422 </td><td> Validation Error </td><td> - </td></tr>
1936+ </table>
1937+ */
1938+ public okhttp3 .Call ebaySearchByImageAsync (Map <String , Object > requestBody , final ApiCallback <Object > _callback ) throws ApiException {
1939+
1940+ okhttp3 .Call localVarCall = ebaySearchByImageValidateBeforeCall (requestBody , _callback );
1941+ Type localVarReturnType = new TypeToken <Object >(){}.getType ();
1942+ localVarApiClient .executeAsync (localVarCall , localVarReturnType , _callback );
1943+ return localVarCall ;
1944+ }
18141945 /**
18151946 * Build call for ebaySearchListings
18161947 * @param query Search keywords (required)
0 commit comments