Giter Site home page Giter Site logo

python-riminder-api's Introduction

python-riminder-api

๐Ÿ Riminder API Python Wrapper

Installation

$ pip install riminder

Usage

Example Source

    >>> from riminder import Riminder
    >>> from riminder.source import Source
    >>> client = Riminder(api_key="YOUR_API_KEY")
    >>> Source = Source(self.client)
    >>> result = source.get_all()
    >>> print(result)
    {
    "code": 200,
    "message": "ok",
    "data": [
        {
        "_id": "7c94e981cd23d16f5c549eea21a7554db0c927a7",
        "name": "Careers website",
        "type": "api",
        "archive": false
        ...
                

Example Profile

    >>> from riminder import Riminder
    >>> from riminder.profile import Profile
    >>> client = Riminder(api_key="YOUR_API_KEY")
    >>> profile = Profile(self.client)
    >>> result = profile.get_all(source_ids=["source_id"])
    >>> print(result)
    {
        "code": 200,
        "message": "OK",
        "data": {
            "page": 1,
            "maxPage": 3,
            "count_profiles": 85,
            "profiles": [
            {
                "profile_id": "215de6cb5099f4895149ec0a6ac91be94ffdd246",
                "profile_reference": "49583",
                ...

Example Job

    >>> from riminder import Riminder
    >>> from riminder.job import Job
    >>> client = Riminder(api_key="YOUR_API_KEY")
    >>> job = Job(self.client)
    >>> result = job.get_all()
    >>> print(result)
    {
        "code": 200,
        "message": "ok",
        "data": [
            {
            "job_id": "7c94e981cd23d16f5c549eea21a7554db0c927a7",
            "job_reference": "1248593",
            "name": "Talent Acquisition Specialist",
            "archive": false,
            "date_creation": {
                "date": "2017-07-27 18:49:41.000000",
                "timezone_type": 3,
                "timezone": "Europe/Paris"
            ...
                

API

Profile

  • get_all(). Retreive all profiles that match the query param, only source_ids are required
    profile.get_all(source_ids, seniority, stage, date_start, date_end, job_id, page, limit, sort_by)
  • create_profile(). Add a profile resume to a sourced id
    profile.create_profile(source_id, file_path, profile_reference, timestamp_reception)
  • get_by_id(). Retrieve the profile information associated with profile id, source_id and profile_id are required
    profile.get_by_id(source_id, profile_id)
  • get_documents(). Retrieve the profile information associated with profile id, source_id and profile_id are required
    profile.get_documents(source_id, profile_id)
  • get_extractions(). Retrieve the profile career's path associated with profile id, source_id and profile_id are required
    profile.get_extractions(source_id, profile_id)
  • get_extractions(). Retrieve the profile assessments associated with profile id, source_id and profile_id are required
    profile.get_jobs(source_id, profile_id)
  • update_stage(). Edit the profile stage given a job, source_id, profile_id and job_id are required
    profile.update_stage(source_id, profile_id, job_id, stage)
  • update_rating. Edit the profile rating given a job, all params are required
    profile.update_rating(source_id, profile_id, job_id, rating)

Source

  • get_all(). get all sources
    source.get_all()
  • get_by_id(). Retrieve the source information associated with source id (required)
    source.get_by_id(source_id)

job

  • get_all(). Retrieve all jobs for given team account
    job.get_all()
  • get_by_id(). Retrieve the job information associated with the job_id (required)
    job.get_by_id(job_id)

Tests

All code is unit tested. To run the test, please follow these steps

  • git clone https://github.com/Riminder/python-riminder-api
  • From your python virtual environment navigate to the project directory and install requirements
$ pip install -r requirements.txt
  • run test
$ python riminder/test.py

Help

  • Here an example on how to get help:
   >>> from riminder import Riminder
   >>> from riminder.profile import Profile
   >>> help(Profile.update_rating)

   Help on function update_rating in module riminder.profile:

   update_rating(self, source_id=None, profile_id=None, job_id=None, rating=None)
   Edit the profile rating given a job
   
   Args:
       profile_id:             <string>
                               profile id
   body params:
       source_id:              <string>
                               source id associated to the profile
       
       job_id:                 <string>
                               job id
       rating:                 <int32>
                               profile rating from 1 to 4 associated to the job.
   
   Returns:
       Response that contains code 201 if successful
       Other status codes otherwise.
(END)

Todo

  • Finishing docstrings
  • All test must pass
  • Adding webhooks

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.