lib/phraseapp-ruby.rb
def glossary_create(account_id, params)
      path = sprintf("/api/v2/accounts/%s/glossaries", account_id)
      data_hash = {}
      post_body = nil
  
      if params.present?
        unless params.kind_of?(PhraseApp::RequestParams::GlossaryParams)
          raise PhraseApp::ParamsHelpers::ParamsError.new("Expects params to be kind_of PhraseApp::RequestParams::GlossaryParams")
        end
      end
  
      data_hash = params.to_h
      err = params.validate
      if err != nil
        return nil, err
      end
      reqHelper = PhraseApp::ParamsHelpers::BodyTypeHelper.new(data_hash, post_body)
      rc, err = PhraseApp.send_request(@credentials, "POST", path, reqHelper.ctype, reqHelper.body, 201)
      if err != nil
        return nil, err
      end
      
      return PhraseApp::ResponseObjects::Glossary.new(JSON.load(rc.body)), err
    end
def glossary_create(account_id, params)
      path = sprintf("/api/v2/accounts/%s/glossaries", account_id)
      data_hash = {}
      post_body = nil
  
      if params.present?
        unless params.kind_of?(PhraseApp::RequestParams::GlossaryParams)
          raise PhraseApp::ParamsHelpers::ParamsError.new("Expects params to be kind_of PhraseApp::RequestParams::GlossaryParams")
        end
      end
  
      data_hash = params.to_h
      err = params.validate
      if err != nil
        return nil, err
      end
      reqHelper = PhraseApp::ParamsHelpers::BodyTypeHelper.new(data_hash, post_body)
      rc, err = PhraseApp.send_request(@credentials, "POST", path, reqHelper.ctype, reqHelper.body, 201)
      if err != nil
        return nil, err
      end
      
      return PhraseApp::ResponseObjects::Glossary.new(JSON.load(rc.body)), err
    end
Create a new glossary.
 API Path: /api/v2/accounts/:account_id/glossaries
 == Parameters:
 account_id::
   account_id
 params::
   Parameters of type PhraseApp::RequestParams::GlossaryParams

 == Returns:
   PhraseApp::ResponseObjects::Glossary
   err