No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

send-test 427B

123456789101112131415
  1. #!/usr/bin/env ruby
  2. require 'cross-post'
  3. require 'awesome_print'
  4. config = CrossPost::Config.new
  5. url = config['mastodon.url']
  6. token = config['mastodon.token']
  7. client = ::Mastodon::REST::Client.new base_url: url, bearer_token: token
  8. media = '/home/aeris/Images/tux-debian.png'
  9. media = client.upload_media media
  10. status = client.create_status 'Test', nil, [media.id]
  11. ap status
  12. sleep 5
  13. client.destroy_status status.id