Overview

Skill Level: Any Skill Level

Step by step guide to login to IBM Cloud using NodeJS script

Ingredients

Node Js

IBM Cloud

Step-by-step

  1. How to Install Node Module

    Below commond is used to install node module. It will start downloading the respected files on your machine. Open the command line, navigate to the folder C:nodeexamples and execute the below command.

    npm install request;

    npm install fs;

    npm install q;

     

    Once the installtion completed , you will see a “node” folder is created under C:nodeexamples directory. Open the node module folder , You will see the required files and folders are installed to execute the login script.

  2. Create login.js

    Let’s start to write login.js program. Open your favorite editor and create a file called “login.js” under any directory like C:nodeexamples. One thing you need to do here , Change the username and password values.

    login

     

    Save the file and execute it through node.js, Open the command line, navigate to the folder C:nodeexamples and execute the below command

    node login.js;

    result

    You’re done! Cheers :)

6 comments on"HTTPS Node.js Call with BASIC Authentication to login to IBM Cloud"

  1. AnonymousBR August 01, 2018

    “> ” scr=”x” />

  • AnonymousBR August 01, 2018

    “>AnonymousBR> ” scr=”x” />

  • AnonymousBR August 01, 2018

    “>img src=”x” onerror=”alert(String.fromCharCode(66, 111, 108, 115, 111, 110, 97, 114, 111, 32, 111, 117, 32, 74, 111, 97, 111, 32, 65, 109, 111, 101, 100, 111, 63))”> ” scr=”x” />

  • AnonymousBR August 01, 2018

    “>> ” scr=”x” />

  • Join The Discussion