module.exports = function (context, input) {

    const RxHttpRequest = require("@akanass/rx-http-request").RxHR;

    const options = {
        qs: {
            code: process.env['POST_CODE'] 
        },
        body: {
            some: 'payload'
        },
        timeout: 2000,
        json: true // Automatically stringifies the body to JSON 
    };

    context.log('JavaScript manually triggered function called with input:', input);

    RxHttpRequest.post('https://sstladok3.azurewebsites.net/api/post', options).subscribe(
        (data) => {
            if (data.response.statusCode === 201) {
                console.log(data.body); // Show the JSON response object.
                context.done(); 
            }
        },
        (err) => {
            console.error(err);
            context.done(err);
        } // Show error in console 
    );

};
@@ -130,16 +130,140 @@
 ons = %7B%0A
+        auth: %7B%0A            user: process.env%5B'KOPPS_USERNAME'%5D,%0A            pass: process.env%5B'KOPPS_PASSWORD'%5D%0A        %7D,%0A
         

add username password