Skip to content

Instantly share code, notes, and snippets.

View lhlhai's full-sized avatar
🏠
Working from home

lhlhai

🏠
Working from home
View GitHub Profile
@lhlhai
lhlhai / example.md
Created June 17, 2025 06:02 — forked from gghughunishvili/example.md
Postman pm.sendRequest example

To send a request via the sandbox, you can use pm.sendRequest.

pm.test("Status code is 200", function () {
    pm.sendRequest('https://postman-echo.com/get', function (err, res) {
        pm.expect(err).to.not.be.ok;
        pm.expect(res).to.have.property('code', 200);
        pm.expect(res).to.have.property('status', 'OK');
    });
});

Keybase proof

I hereby claim:

  • I am lhlhai on github.
  • I am lhlhai (https://keybase.io/lhlhai) on keybase.
  • I have a public key ASBEBwdhzLCtizDqkT4dLSgsS6OOBzLfID_1HrBA4o0mUgo

To claim this, I am signing this object: