-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(repo): implement takeScreenshot
chore(repo): capitalise verifywebhooksignature method chore(repo): reorder methods into categories with public/private
- Loading branch information
Showing
3 changed files
with
307 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Threading.Tasks; | ||
|
||
namespace Screenshots; | ||
|
||
public interface IUrlbox | ||
{ | ||
// Screenshot and File Generation Methods | ||
Task<AsyncUrlboxResponse> TakeScreenshot(UrlboxOptions options); | ||
Task<AsyncUrlboxResponse> TakeScreenshot(UrlboxOptions options, int timeout); | ||
Task<SyncUrlboxResponse> Render(UrlboxOptions options); | ||
Task<AsyncUrlboxResponse> RenderAsync(UrlboxOptions options); | ||
|
||
// Download and File Handling Methods | ||
Task<string> DownloadAsBase64(UrlboxOptions options, string format = "png"); | ||
Task<string> DownloadAsBase64(string urlboxUrl); | ||
Task<string> DownloadToFile(string urlboxUrl, string filename); | ||
Task<string> DownloadToFile(UrlboxOptions options, string filename, string format = "png"); | ||
|
||
// URL Generation Methods | ||
string GeneratePNGUrl(UrlboxOptions options); | ||
string GenerateJPEGUrl(UrlboxOptions options); | ||
string GeneratePDFUrl(UrlboxOptions options); | ||
string GenerateUrlboxUrl(UrlboxOptions options, string format = "png"); | ||
|
||
// Status and Validation Methods | ||
Task<AsyncUrlboxResponse> GetStatus(string statusUrl); | ||
bool VerifyWebhookSignature(string header, string content); | ||
} |
Oops, something went wrong.