Class ToptalUtil

java.lang.Object
dev.cwhead.GravesX.util.ToptalUtil

public final class ToptalUtil extends Object
Client for Toptal's Hastebin service. API docs: https://www.toptal.com/developers/hastebin/documentation
  • Method Details

    • post

      public static String post(String content, String bearerToken)
      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.