Home > Reflections | โฎ๏ธ โญ๏ธ

2025-06-07 | ๐Ÿšœ Farm | ๐Ÿ’พ Software | ๐Ÿค• Trauma | ๐Ÿค–๐Ÿฆ AutoTweet โŒจ๏ธ

๐Ÿ“š Books

๐Ÿ“ฐ News

๐Ÿค–๐Ÿฆ Semiautomatic Tweets โŒจ๏ธ

โœจ Obsidian Templater code for opening a ๐Ÿ’ป browser window with an ๐Ÿค– AI-generated ๐Ÿฆ tweet, ready to ๐Ÿš€ post.

โ“ What this code does:

  1. ๐Ÿ“– Read the content of the current note ๐Ÿ“
  2. ๐Ÿ—ฃ๏ธ Ask Gemini ๐Ÿค– to identify a list of ๐Ÿท๏ธ topics from the note ๐Ÿ“
  3. โœ๏ธ Format a tweet ๐Ÿฆ with:
    1. ๐Ÿ“ƒ the title of the current note ๐Ÿ“
    2. ๐Ÿท๏ธ The formatted topics identified by Gemini ๐Ÿค–
    3. ๐ŸŒ The URL to the web page this note is published to ๐Ÿš€
  4. ๐Ÿ’ป Open a browser window ๐ŸŒ to the ๐Ÿฆ twitter post form, prefilled with the generated tweet ๐Ÿค–โœ๏ธ ๐ŸŽ‰.
Error: HTTP error! status: (400) {  
  "error": {  
    "code": 400,  
    "message": "API key not valid. Please pass a valid API key.",  
    "status": "INVALID_ARGUMENT",  
    "details": [  
      {  
        "@type": "type.googleapis.com/google.rpc.ErrorInfo",  
        "reason": "API_KEY_INVALID",  
        "domain": "googleapis.com",  
        "metadata": {  
          "service": "generativelanguage.googleapis.com"  
        }  
      },  
      {  
        "@type": "type.googleapis.com/google.rpc.LocalizedMessage",  
        "locale": "en-US",  
        "message": "API key not valid. Please pass a valid API key."  
      }  
    ]  
  }  
}  
  

๐Ÿ‘€๐Ÿ› Bug Report

๐Ÿฆ Tweet