From 4b40a21eb18ffd00f60f91615520714af5d72975 Mon Sep 17 00:00:00 2001 From: Anders Westy Larsen Date: Tue, 4 Dec 2018 10:16:03 +0100 Subject: [PATCH] Docs: Update code examples --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index be73dad..8565601 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ The trustpilot module is async/await based. It provides [request-promise-native] ### Basic Usage ```ts -import { TrustpilotApi } from "./trustpilot-api"; +import { TrustpilotApi } from "trustpilot"; async run() { const client = new TrustpilotApi({ @@ -45,7 +45,7 @@ For calls authentified by OAuth token, use the `authenticate()` promise, which r object with everything you need. ```ts -import { TrustpilotApi } from "./trustpilot-api"; +import { TrustpilotApi } from "trustpilot"; async run() { const client = await new TrustpilotApi({ @@ -70,7 +70,7 @@ async run() { The Invitations API methods have a different base URL. To override it, simply pass the `baseUrl`. ```ts -import { TrustpilotApi } from "./trustpilot-api"; +import { TrustpilotApi } from "trustpilot"; async run() { const client = await new TrustpilotApi({