Code Monkey home page Code Monkey logo

bumeran's Introduction

Bumeran

This gem was made to connect to the Bumeran api found in https://developers.bumeran.com

Getting started

Bumeran works with Rails 3.2 onwards. You can add it to your Gemfile with:

gem 'bumeran'

...or can fetch the latest developer version with:

gem 'bumeran', :git => '[email protected]:rfernand/bumeran.git', :branch => 'develop'

Configuration

After you finished the gem installation, you need to configure it with your Bumeran user information. You can do it filling a file like config/initializers/bumeran.rb with:

Bumeran.setup do |config|
  config.grant_type = "password"  # Default value
  config.client_id  = ""          # Bumeran client id
  config.username   = ""          # Bumeran client username
  config.email      = ""          # Bumeran client email
  config.password   = ""          # Bumeran client password
  config.environment "production" # You can choose between production or development
end

How to use

And more that don't need an ID. All return a json object, and raise an error (401, 404, 500) if there was one:

Create and publish a new publication

publication = Bumeran::Publication.new
pais_id = 1 # 1 = Argentina
plan_publication_id = 30 # 30 = simple
Bumeran.publish(publication.body.to_json, pais_id, plan_publication_id)

Get a publication data

Bumeran.get_publication(publication_id)
Bumeran.get_postulations_in_publication(publication_id)

Destroy a publication

Bumeran.destroy_publication(publication_id)

Discard a postulation

Bumeran.discard_postulation(publication_id)

More getters

They receive a corresponding object id and return a json object.

Bumeran.get_estudio(estudio_id)
Bumeran.get_conocimiento(conocimiento_id)
Bumeran.get_conocimiento_custom(conocimiento_custom_id)
Bumeran.get_experiencia_laboral(experiencia_laboral_id)
Bumeran.get_postulacion(postulacion_id)
Bumeran.get_curriculum(curriculum_id)
Bumeran.get_subareas_in(area_id)
Bumeran.get_zonas_in(pais_id)
Bumeran.get_localidades_id(pais_id)
Bumeran.get_plan_publicaciones_in(pais_id)

More queries and helpers

All return a json object. After the first query, the returned json is cached in the Bumeran module.

Bumeran.areas
Bumeran.subareas
Bumeran.frecuencias_pago
Bumeran.paises
Bumeran.denominaciones
Bumeran.direcciones
Bumeran.frecuencias_pago
Bumeran.idiomas
Bumeran.industrias
Bumeran.niveles_idiomas
Bumeran.tipos_trabajo
Bumeran.areas_estudio
Bumeran.estados_estudio
Bumeran.tipos_estudio

TODO

  • Add the missing methods of the postulaciones service

bumeran's People

Contributors

astroza avatar rfernand avatar zerobatu avatar

Stargazers

 avatar

Watchers

 avatar

bumeran's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.