{"id":29011144,"url":"https://github.com/marketcloud/marketcloud-node","last_synced_at":"2025-06-25T17:12:02.982Z","repository":{"id":30621400,"uuid":"34176806","full_name":"Marketcloud/marketcloud-node","owner":"Marketcloud","description":"Marketcloud nodejs client library","archived":false,"fork":false,"pushed_at":"2017-09-03T13:36:37.000Z","size":58,"stargazers_count":22,"open_issues_count":1,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-07T05:38:45.918Z","etag":null,"topics":["api","ecommerce","nodejs","shopping-cart"],"latest_commit_sha":null,"homepage":"http://www.marketcloud.it","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Marketcloud.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-18T18:08:42.000Z","updated_at":"2023-01-27T16:17:11.000Z","dependencies_parsed_at":"2022-08-27T12:20:13.758Z","dependency_job_id":null,"html_url":"https://github.com/Marketcloud/marketcloud-node","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/Marketcloud/marketcloud-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marketcloud%2Fmarketcloud-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marketcloud%2Fmarketcloud-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marketcloud%2Fmarketcloud-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marketcloud%2Fmarketcloud-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Marketcloud","download_url":"https://codeload.github.com/Marketcloud/marketcloud-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marketcloud%2Fmarketcloud-node/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261917437,"owners_count":23229919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","ecommerce","nodejs","shopping-cart"],"created_at":"2025-06-25T17:12:00.233Z","updated_at":"2025-06-25T17:12:02.948Z","avatar_url":"https://github.com/Marketcloud.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/Marketcloud/marketcloud-node.svg?branch=master)](https://travis-ci.org/Marketcloud/marketcloud-node) [![Known Vulnerabilities](https://snyk.io/test/github/Marketcloud/marketcloud-node/badge.svg)](https://snyk.io/test/github/snyk/goof) [![Code Climate](https://codeclimate.com/github/Marketcloud/marketcloud-node/badges/gpa.svg)]\n# Marketcloud NodeJS SDK\n![Marketcloud](http://www.marketcloud.it/img/logo/new_with_text.png)\n\nThis is the repository for Marketcloud's official nodejs client library. Please refer to the [website](https://www.marketcloud.it) for documentation and more information \n\n## Installation\n```\nnpm install marketcloud-node\n```\n\n## Updating\nPlease remember to check the changelog for important information whenever updating to the latest version!\n\n## Documentation\nThe official documentation is available at http://www.marketcloud.it/documentation/nodejs\n\n## API overview\nYou can interact with the api through a Marketcloud.Client instance\n```javascript\nvar Marketcloud = require('marketcloud-node');\nvar marketcloud = new Marketcloud.Client({\n   public_key : 'your-public-key-here',\n   secret_key : 'your-secret-key-here'\n})\n```\nEvery resource method, returns a promise:\n```javascript\nvar product = {\n  name : 'Sandman #3',\n  price : 9.99,\n  stock_type : 'track',\n  stock_level : 10,\n  author : 'Neil Gaiman',\n  publisher : 'Vertigo',\n  images : ['https://images.com/comic_cover.jpg']\n}\n\n\t\t\n//Save the product\nmarketcloud.products.create(product)\n.then(function(response){\n  var product_id = response.data.id\n  expect(response.status).to.equal(true)\n})\n\n\n//Retrieve a particular product\nmarketcloud.products.getById(123)\n.then(function(response){  \n  console.log(\"The product is\",response.data)\n});\n\n\n\n// Create an order\nvar new_order = {\n   billing_address : {...},\n   shipping_address : {...},\n   items : [{product_id:1, variant_id : 1,quantity:1}]\n}\n\nmarketcloud.orders.create(new_order)\n.then(function(response){\n\t// Handle success\n\t// Log order data\n\tconsole.log(response.data);\n})\n.catch(function(error){\n // Handle error\n });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarketcloud%2Fmarketcloud-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarketcloud%2Fmarketcloud-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarketcloud%2Fmarketcloud-node/lists"}