{"id":27011526,"url":"https://github.com/pcon/humblemug","last_synced_at":"2025-04-04T11:29:40.905Z","repository":{"id":57269599,"uuid":"30799707","full_name":"pcon/humblemug","owner":"pcon","description":"A library for interacting with the SmugMug API","archived":false,"fork":false,"pushed_at":"2015-02-17T23:05:30.000Z","size":156,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-02T00:11:30.559Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/pcon.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-02-14T15:11:52.000Z","updated_at":"2018-06-06T08:33:24.000Z","dependencies_parsed_at":"2022-09-02T09:51:06.509Z","dependency_job_id":null,"html_url":"https://github.com/pcon/humblemug","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcon%2Fhumblemug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcon%2Fhumblemug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcon%2Fhumblemug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcon%2Fhumblemug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pcon","download_url":"https://codeload.github.com/pcon/humblemug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247169376,"owners_count":20895272,"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":[],"created_at":"2025-04-04T11:29:40.391Z","updated_at":"2025-04-04T11:29:40.897Z","avatar_url":"https://github.com/pcon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Node.js library for SmugMug\n\nThis library is very much in it infancy and only support a small number of methods that the SmugMug 1.3.0 API supports.  These methods should work, but they have not been tested on a large scale.  SmugMug states that 1.3.0 is deprecated and will be removed \"in the future.\"  It is unlikely that this API will be removed tomorrow since the 2.0 API is still in beta.\n\n# Example Usage\n\nThe example below will login and list all of the albums for the user _exampleuser_\n\n```javascript\nvar humble = require('humblemug');\nhumble.config({api_key: '1234567890abc'});\nhumble.login.anon().then(function () {\n    humble.albums.get('exampleuser').then(function (album_list) {\n        console.log(album_list);\n    });\n});\n```\n\n# Documentation\n## config\nConfig takes in an object of configuration information to store and use.\n```javascript\nhumble.config({api_key: '1234567890abc'});\n```\n## login\n### anon\nMost public information can be accessed with after loggining in anonymously\n```javascript\nhumble.login.anon().then(function () {\n    //Do Stuff\n});\n```\n## albums\n### [get](http://api.smugmug.com/services/api/?version=1.3.0\u0026method=smugmug.albums.get)\nLists all of the albums for a given user\n```javascript\nhumble.albums.get('username').then(function (album_list) {\n    //Do Stuff\n});\n```\n### [getInfo](http://api.smugmug.com/services/api/?version=1.3.0\u0026method=smugmug.albums.getInfo)\nGets all the info for a given album\n```javascript\nhumble.albums.getInfo('album_id', 'album_key').then(function (album_info) {\n    //Do Stuff\n});\n```\n## images\n### [get](http://api.smugmug.com/services/api/?version=1.3.0\u0026method=smugmug.images.get)\nLists all of the images in an album\n```javascript\nhumble.images.get('album_id', 'album_key').then(function (image_list) {\n    //Do Stuff\n});\n```\n\n## Additional options\nMost SmugMug API calls support additional options.  You can call most of these methods with an options object to set additional information.\n_NOTE:  These options appear to be case sensitive so becareful_\n\n```javascript\nvar options = {\n    Heavy: true\n};\n\nhumble.images.get('album_id', 'album_key', options).then(function (image_list) {\n    //Do Stuff\n});\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcon%2Fhumblemug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpcon%2Fhumblemug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcon%2Fhumblemug/lists"}