{"id":16341587,"url":"https://github.com/psibi/stickystamp-ruby","last_synced_at":"2025-09-17T20:33:22.869Z","repository":{"id":20689191,"uuid":"23972461","full_name":"psibi/stickystamp-ruby","owner":"psibi","description":"Ruby API Library for StickyStamp","archived":false,"fork":false,"pushed_at":"2014-09-13T14:52:59.000Z","size":248,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-27T10:43:33.619Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/psibi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-12T18:43:36.000Z","updated_at":"2014-09-12T18:44:15.000Z","dependencies_parsed_at":"2022-08-05T09:15:12.307Z","dependency_job_id":null,"html_url":"https://github.com/psibi/stickystamp-ruby","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psibi%2Fstickystamp-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psibi%2Fstickystamp-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psibi%2Fstickystamp-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psibi%2Fstickystamp-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psibi","download_url":"https://codeload.github.com/psibi/stickystamp-ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239443897,"owners_count":19639573,"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":"2024-10-10T23:59:49.576Z","updated_at":"2025-09-17T20:33:17.799Z","avatar_url":"https://github.com/psibi.png","language":"Ruby","readme":"stickystamp-ruby\n-----------------\n\nA Ruby interface for StickyStamp API.\n\nUsage\n------\n\nThe library makes it simple to interact with Stickystamp REST API. Let\nme demonstrate it through a sample `irb` session:\n\n    \u003e\u003e\u003e require 'stickystamp'\n    =\u003e true\n\nThis means you have installed the gem properly and are ready to go!\nNow create a `StickyStamp` object. This object will be used for all\nthe interaction with the StickyStamp servers.\n\n    \u003e\u003e\u003e api = StickyStamp.new(\"b79bdeaa19f147afbbe2d7ef9dee9be2\")\n    =\u003e API Key: b79bdeaa19f147afbbe2d7ef9dee9be2\n\nYou pass an API key for creating a stickystamp object.\nNow you can create a sample recipient object like this:\n\n    \u003e\u003e\u003e r = Recipient.new(\"isaac\",\"isaac@stickystamp.com\",\"12, Krishnan Street\",\"West Mambalam\",\"Chennai\",\"Tamilnadu\",\"India\",\"600033\",\"888888888\")\n    =\u003e isaac isaac@stickystamp.com\n\nTo create it in the server, all you have to do is:\n\n    \u003e\u003e\u003e recipient = api.createRecipient(r)\n    =\u003e isaac isaac@stickystamp.com\n\nNow you can inspect that recipient object:\n\n    \u003e\u003e\u003e recipient.id\n    =\u003e 33\n\nYou can also get information about a specific recipient, if you kwow\nit's id:\n\n    \u003e\u003e\u003e another_recipient = api.getSpecificRecipient(33)\n    =\u003e isaac isaac@stickystamp.com\n    \u003e\u003e\u003e another_recipient.email\n    =\u003e \"isaac@stickystamp.com\"\n    \u003e\u003e\u003e another_recipient.country\n    =\u003e \"India\"\n\nTo get the list of all shipments:\n\n    \u003e\u003e\u003e api.getShipments\n    =\u003e [352, 354, 371, 448, 454, 593, 597, 670, 733, 734, 779, 792]\n\nNote that each list we got above is an object internally:\n\n    \u003e\u003e\u003e shipments = api.getShipments\n    =\u003e [352, 354, 371, 448, 454, 593, 597, 670, 733, 734, 779, 792]\n    \u003e\u003e\u003e shipments[4].tax\n    =\u003e \"0.00\"\n\nTo get an information about specific shipment:\n\n    \u003e\u003e\u003e shipment_371 = api.getSpecificShipment \"371\"\n    =\u003e 371\n    \u003e\u003e\u003e shipment_371.recipient[\"email\"]\n    =\u003e \"s3@s.com\"\n\nSimilarly you can get all the getGrantForms:\n\n    \u003e\u003e\u003e api.getGrantForms\n    =\u003e  [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]\n\nYou can play around with each of the objects:\n\n    \u003e\u003e\u003e gforms = api.getGrantForms\n    =\u003e\n    [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]\n    \u003e\u003e\u003e gforms[0].id\n    =\u003e 1\n    \u003e\u003e\u003e gforms[0].url\n    =\u003e \"http://beta.stickystamp.com/shiptokens/convert/95d9cf352d994e67820060930fb055f8\"\n\nTo get a specific grantform:\n\n    \u003e\u003e\u003e gform_10 = api.getSpecificGrantForm \"10\"\n    =\u003e 10\n    \u003e\u003e\u003e gform_10.url\n    =\u003e \"http://beta.stickystamp.com/shiptokens/convert/810cc9a6301c491b84a352ccf0e48ecb\"\n\nTo get the list of all Merchandise:\n\n    \u003e\u003e\u003e api.getAllMerchandise\n    =\u003e [Campus Hero :tshirt, Code Ninja :tshirt, Thank You Card :postcard, Smashing Logo :sticker, Awesome Logo :sticker, Hacker :tshirt]\n\nNote that every item in the list is an `object`. So you can play with\nthem individually:\n\n    \u003e\u003e\u003e b = api.getAllMerchandise\n    =\u003e [Campus Hero :tshirt, Code Ninja :tshirt, Thank You Card :postcard, Smashing Logo :sticker, Awesome Logo :sticker, Hacker :tshirt]\n    \u003e\u003e\u003e b[0]\n    =\u003e Campus Hero :tshirt\n    \u003e\u003e\u003e b[0].id\n    =\u003e \"T1-CMPSH\"\n\nTo get information about specific merchandise:\n\n    \u003e\u003e\u003e tshirt_merchandise = api.getSpecificMerchandise \"T1-CMPSH\"\n    =\u003e Campus Hero :tshirt\n    \u003e\u003e\u003e tshirt_merchandise.tshirt_type\n    =\u003e \"Cotton Roundneck\"\n\nIsn't that beautiful?\n\nLicense\n--------\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsibi%2Fstickystamp-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsibi%2Fstickystamp-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsibi%2Fstickystamp-ruby/lists"}