@@ -22,7 +22,7 @@ open class CellsAutoshapesAPI {
22
22
- parameter storage: (query) storage name. (optional)
23
23
- parameter completion: completion handler to receive the data and the error objects
24
24
*/
25
- open class func cellsAutoshapesGetWorksheetAutoshape( name: String , sheetName: String , autoshapeNumber: Int32 , format: String ? = nil , folder: String ? = nil , storage: String ? = nil , completion: @escaping ( ( _ data: NSURL ? , _ error: Error ? ) -> Void ) ) {
25
+ open class func cellsAutoshapesGetWorksheetAutoshape( name: String , sheetName: String , autoshapeNumber: Int32 , format: String ? = nil , folder: String ? = nil , storage: String ? = nil , completion: @escaping ( ( _ data: Data ? , _ error: Error ? ) -> Void ) ) {
26
26
cellsAutoshapesGetWorksheetAutoshapeWithRequestBuilder ( name: name, sheetName: sheetName, autoshapeNumber: autoshapeNumber, format: format, folder: folder, storage: storage) . execute { ( response, error) -> Void in
27
27
completion ( response? . body, error)
28
28
}
@@ -43,7 +43,7 @@ open class CellsAutoshapesAPI {
43
43
44
44
- returns: RequestBuilder<NSURL>
45
45
*/
46
- open class func cellsAutoshapesGetWorksheetAutoshapeWithRequestBuilder( name: String , sheetName: String , autoshapeNumber: Int32 , format: String ? = nil , folder: String ? = nil , storage: String ? = nil ) -> RequestBuilder < NSURL > {
46
+ open class func cellsAutoshapesGetWorksheetAutoshapeWithRequestBuilder( name: String , sheetName: String , autoshapeNumber: Int32 , format: String ? = nil , folder: String ? = nil , storage: String ? = nil ) -> RequestBuilder < Data > {
47
47
var path = " /cells/{name}/worksheets/{sheetName}/autoshapes/{autoshapeNumber} "
48
48
let namePreEscape = " \( name) "
49
49
let namePostEscape = namePreEscape. addingPercentEncoding ( withAllowedCharacters: . urlPathAllowed) ?? " "
@@ -64,7 +64,7 @@ open class CellsAutoshapesAPI {
64
64
" storage " : storage
65
65
] )
66
66
67
- let requestBuilder : RequestBuilder < NSURL > . Type = AsposeCellsCloudAPI . requestBuilderFactory. getNonDecodableBuilder ( )
67
+ let requestBuilder : RequestBuilder < Data > . Type = AsposeCellsCloudAPI . requestBuilderFactory. getNonDecodableBuilder ( )
68
68
69
69
return requestBuilder. init ( method: " GET " , URLString: ( url? . string ?? URLString) , parameters: parameters, isBody: false )
70
70
}
0 commit comments