Bir Excel çalışma kitabında metin değiştir
Bu REST API, bir Excel çalışma kitabında metin değiştirir.
REST API
POST http://api.aspose.cloud/v3.0/cells/{name}/worksheets/{sheetName}/replaceText
Güvenlik ve Kimlik Doğrulama
Aspose.Cells Cloud API’leri güvenlidir ve JWT belirteci tabanlı kimlik doğrulama gerektirir.
İstek Parametreleri
| Parametre Adı | Tür | Konum | Açıklama |
|---|---|---|---|
| name | string | path | Çalışma kitabının dosya adı. |
| sheetName | string | path | Değişiklik yapılının çalışma sayfasının adı. |
| oldValue | string | query | Değiştirilecek metin. |
| newValue | string | query | Eski değerin yerine geçecek metin. |
| folder | string | query | Çalışma kitabının bulunduğu klasör yolu. |
| storageName | string | query | Çalışma kitabının bulunduğu depolama hizmetinin adı. |
Yanıt
{
"Status":"OK",
"Code":200,
"Workbook": {
"FileName": "test.xlsx",
"Links": [
{
"Href": "/test.xlsx",
"Rel": "self",
"Title": null,
"Type": null
},
{
"Href": "/test.xlsx",
"Rel": "alternate",
"Title": "CSV Olarak İndir",
"Type": "text/csv"
},
{
"Href": "/test.xlsx",
"Rel": "alternate",
"Title": "HTML Olarak İndir",
"Type": "text/html"
},
{
"Href": "/test.xlsx",
"Rel": "alternate",
"Title": "ODS Olarak İndir",
"Type": "application/vnd.oasis.opendocument.spreadsheet"
},
{
"Href": "/test.xlsx",
"Rel": "alternate",
"Title": "PDF Olarak İndir",
"Type": "application/pdf"
},
{
"Href": "/test.xlsx",
"Rel": "alternate",
"Title": "Tablo Ayrıştırılmış Metin Biçiminde İndir",
"Type": "text/plain"
},
{
"Href": "/test.xlsx",
"Rel": "alternate",
"Title": "TIFF Olarak İndir",
"Type": "image/tiff"
},
{
"Href": "/test.xlsx",
"Rel": "alternate",
"Title": "Microsoft Excel 2003 Olarak İndir",
"Type": "application/vnd.ms-excel"
},
{
"Href": "/test.xlsx",
"Rel": "alternate",
"Title": "Microsoft Excel 2007 Olarak İndir",
"Type": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
},
{
"Href": "/test.xlsx",
"Rel": "alternate",
"Title": "XPS Olarak İndir",
"Type": "application/vnd.ms-xpsdocument"
}
],
"Worksheets": {
"link": {
"Href": "/worksheets",
"Rel": "self",
"Title": null,
"Type": null
}
},
"DefaultStyle": {
"link": {
"Href": "/defaultstyle",
"Rel": "self",
"Title": null,
"Type": null
}
},
"DocumentProperties": {
"link": {
"Href": "/documentproperties",
"Rel": "self",
"Title": null,
"Type": null
}
},
"Names": {
"link": {
"Href": "/names",
"Rel": "self",
"Title": null,
"Type": null
}
},
"Settings": {
"link": {
"Href": "/settings",
"Rel": "self",
"Title": null,
"Type": null
}
},
"IsWriteProtected": "False",
"IsProtected": "False",
"IsEncryption": "false",
"Password": null
}
}
HTTP Durum Kodları
| Kod | Anlam | Açıklama |
|---|---|---|
| 200 | Başarılı (OK) | Filtre başarıyla uygulandı; yanıt işlem detaylarını içerir. |
| 400 | Hatalı İstek (Bad Request) | Eksik veya geçersiz parametreler (örneğin, desteklenmeyen dosya türü). |
| 401 | Yetkisiz (Unauthorized) | Geçersiz veya eksik JWT belirteci. |
| 413 | Yük Çok Büyük (Payload Too Large) | Yüklenen dosya boyut sınırını aşıyor. |
| 500 | Sunucu İçi Hata (Internal Server Error) | Beklenmeyen sunucu hatası. |
SDK’larla PostReplace API Nasıl Kullanılır
PostReplace API Spesifikasyonu
OpenAPI Spesifikasyonu, herkese açık bir programlama arayüzü tanımlar ve REST etkileşimlerini doğrudan bir web tarayıcısından gerçekleştirmenizi sağlar.
Aspose.Cells web hizmetlerini kolayca çağırmak için cURL komut satırı aracını kullanabilirsiniz. Aşağıdaki örnek, cURL ile nasıl istek yapıldığını göstermektedir.
Aspose.Cells Cloud SDK’larını Kullanma
Bu işlevselliği entegre etmenin en hızlı yolu bir SDK kullanmaktır. Bir SDK, düşük seviye detayları yöneterek size iş mantığınızla ilgilenmeniz için fırsat verir. Aspose.Cells Cloud SDK’larının tam listesi için GitHub deposuna bakın.
Aşağıdaki kod örnekleri, farklı SDK’lar kullanarak Aspose.Cells web hizmetlerini nasıl çağıracağınızı göstermektedir: