Official SDKs & API Wrappers
Integrate with E-Z Host API using our language-specific SDKs
Available SDK Libraries
Our official SDKs make it simple to interact with E-Z Host services. Each SDK handles authentication, error management, and provides an intuitive interface tailored to your preferred programming language.
JavaScript/TypeScript
Official SDK for Node.js and browser environments
Available
Installation
Via npm/yarn/pnpm
bash
pnpm add e-zhost-js # Recommended
npm install e-zhost-js
yarn add e-zhost-js
Basic Usage
javascript
import { EZHostSDK } from 'e-zhost-js';
const client = new EZHostSDK('YOUR_API_KEY');
async function uploadFile(filePath) {
try {
const result = await client.upload(filePath);
console.log('File uploaded successfully:', result.url);
} catch (error) {
console.error('Upload failed:', error);
}
}
.NET
Official SDK for .NET Core 8 & 9 applications
Available
Installation
Via NuGet
bash
dotnet add package EZDotNet.Core
// ASP.Net Extension
dotnet add package EZDotNet.Services
Basic Usage
csharp
var client = new EZServicesClient(new EZServicesOptions { ApiKey = "your-api-key" });
// Upload a file
var fileResponse = await client.Files.UploadFileFromPathAsync("path/to/file.png");
// Create short URL
var urlResponse = await client.Shortener.CreateShortUrlAsync("https://example.com");
// Create paste
var pasteResponse = await client.Paste.CreatePasteAsync(new PasteCreateRequest { Title = "Title!", Description = "Description!", Text = "Hello World", Language = PasteLanguage.CSharp });
Python
Official Python SDK for E-Z Host API
Available
Installation
Via GitHub
bash
# Clone from GitHub repository
git clone https://github.com/e-z-services/e-z-py
# No installation needed - import directly from the cloned repository
Basic Usage
python
from ezhost import EZHostClient
# Initialize the client
client = EZHostClient(api_key="YOUR_API_KEY")
# Upload a file
try:
result = client.upload_file("path/to/file.jpg")
print(f"Upload successful: {result.url}")
except EZHostError as e:
print(f"Upload failed: {e}")
Additional Resources
Get more help with our SDKs or contribute to their development:
- Check our REST API documentation if you prefer direct API access
- Report bugs or request features through our GitHub repositories
- Join our Discord community for live support and updates