Package dev.cwhead.GravesX.util
Class ToptalUtil
java.lang.Object
dev.cwhead.GravesX.util.ToptalUtil
Client for Toptal's Hastebin service.
API docs: https://www.toptal.com/developers/hastebin/documentation
-
Method Summary
-
Method Details
-
post
Post plain text to Toptal Hastebin.- Parameters:
content
- Text to upload (400k chars or 1MB)bearerToken
- Required token for Authorization header ("Bearer token");- Returns:
- The standard view URL (https://hastebin.com/{key}), or null on failure.
-