⚡️ Riminder API Node Wrapper
npm install --save riminder-js-sdk
Note: Please mind that this package is browser capable only, in order to use Riminder SDK in NodeJS envirenment you should install
riminder-nodejs-sdk
package instead.
let API_Key = "your_api_key";
let app = new rimidnerSdk.Riminder({API_Key: API_Key});
Class constructor for your app instance, it should be called with an options
object where you define your API_Key
.
Keep in mind that this class is Singleton, so that no more than one app instance is available at the same time.
A static property that contains the app instance after construction and can be accessed from anywhere on the app runtime.
An object conatining all the API methods a user can access after instanciating the app.
The next points are available under the objects
property.
Note: All methods return a Promise when called.
Method that gets a list sources or filtered ones, and accepts an object as an argument, as follows:
let app = new riminderSdk.Riminder({API_Key: "api-key-here"});
app.objects.getSources({where: {...}, page: 1, itemsPerPage: 10});
The options object is composed from a where clause where you define your constraints, and a page property to ask for a specific page and an itemsPerPage property to limit the number of items tou want on each page.
Method that gets on source by id, it accepts one argument which is the id of the wanted source
app.objects.getSource("source_id_here");
Method that gets a list of profiles or filtered one, and also accepts an options object as an argument (the same as getSources
).
app.objects.getProfiles({where: {...}, page: 1, itemsPerPage: 10});
Method that gets one profile by id and source id, and it accepts two arguments, the wanted profile id as a first argument, and the associated source id as a second one.
app.objects.getProfile("profile_id_here", "associated_source_id_here");
Method that gets documents associated to a profile. It has the same signature as the getProfile.
app.objects.getProfileDocuments("profile_id_here", "associated_source_id_here");
Method that gets profile extrations. It has the same signature as the getProfile.
app.objects.getProfileExtractions("profile_id_here", "associated_source_id_here");
Method that gets profile jobs. It has the same signature as the getProfile.
app.objects.getProfileJobs("profile_id_here", "associated_source_id_here");
Method taht updates job's stage value, associated to a profile.
app.objects.updateProfileStage("profile_id", "source_id", "job_id", "stage_new_value");
Method that updates job's rating, associated to a profile.
app.objects.updateProfileRating("profile_id", "source_id", "job_id", "rating_new_value");
The next steps are:
- Create the webhooks API SDK
- Build test suite for the whole SDK
- Create a logic for the
objects.createResumeForProfile
method - Introduce typings for the SDK (manually generation if no automatic way is possible)
- Correct the build system bug of tasks order