jhk753 / gmail-ruby-api

Ruby interface for Gmail API
Other
26 stars 20 forks source link

cannot load such file -- google/api_client #35

Open engineer-plus-plus opened 4 years ago

engineer-plus-plus commented 4 years ago

I get this error

     LoadError:
       cannot load such file -- google/api_client

when I run this code

    require "gmail"

    Gmail.client_id = "my id"
    Gmail.client_secret = "my secret"
    Gmail.refresh_token = "rtoke"

    m = Gmail::Message.new(
      from: "myemail@gmail.com",
      to: "other@gmail.com",
      subject: "this is the subject",
      body: "this is a text body")

    m.deliver