Skip to content

yogahp/TempMailRu

Repository files navigation

Build Status

TempMailRu

Ruby client for TempMailRu

Usage

Get Domains

require 'tempmailru/api'

tempmailru_api = TempMailRu::Api.new(nil, "http")
tempmailru_api.domains

Get Inbox

require 'tempmailru/api'

tempmailru_api = TempMailRu::Api.new(nil, "http")
domain = tempmailru_api.domains[0]
tempmailru_api = TempMailRu::Api.new("test#{domain}")
tempmailru_api.inbox

Get Source

require 'tempmailru/api'

tempmailru_api = TempMailRu::Api.new(nil, "http")
domain = tempmailru_api.domains[0]
tempmailru_api = TempMailRu::Api.new("test#{domain}")
tempmailru_api.source

Delete Inbox

require 'tempmailru/api'

tempmailru_api = TempMailRu::Api.new(nil, "http")
domain = tempmailru_api.domains[0]
tempmailru_api = TempMailRu::Api.new("test#{domain}")
tempmailru_api.delete

Here is TempMailRu API specification.

Contributing

  1. Fork it ( https://github.com/yogahp/TempMailRu/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Releases

No releases published

Packages

No packages published

Languages