{"id":22400797,"url":"https://github.com/deepblue/springnote_resources","last_synced_at":"2025-03-27T00:19:12.464Z","repository":{"id":396588,"uuid":"14631","full_name":"deepblue/springnote_resources","owner":"deepblue","description":"[DEPRECATED] ActiveResource wrapper library for Springnote.com's REST API","archived":false,"fork":false,"pushed_at":"2008-10-23T14:46:13.000Z","size":112,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-05T08:16:04.831Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://myruby.net/pages/391111","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/deepblue.png","metadata":{"files":{"readme":"README.korean.txt","changelog":"History.txt","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":"2008-05-05T11:12:36.000Z","updated_at":"2019-08-13T13:24:04.000Z","dependencies_parsed_at":"2022-08-16T10:20:24.947Z","dependency_job_id":null,"html_url":"https://github.com/deepblue/springnote_resources","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/deepblue%2Fspringnote_resources","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepblue%2Fspringnote_resources/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepblue%2Fspringnote_resources/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepblue%2Fspringnote_resources/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deepblue","download_url":"https://codeload.github.com/deepblue/springnote_resources/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236624383,"owners_count":19178981,"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-12-05T08:14:29.202Z","updated_at":"2025-02-01T05:44:17.758Z","avatar_url":"https://github.com/deepblue.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Springnote Resources\n\n* 홈페이지: http://myruby.net/pages/391111\n* 제작자: deepblue (http://myruby.net), Changshin Lee (http://www.iasandcb.pe.kr)\n\n== 설명:\n\n스프링노트는 REST API를 제공하며, 레일스 프로젝트의 일부인 REST 클라이언트 '액티브리소스(ActiveResource)'를 통해 \n매우 쉽게 접근할 수 있다. 이를 활용하면, 자신의 데이터베이스에서 ORM인 액티브레코드를 이용해 데이터를 읽고 쓰는 것처럼, 액티브리소스를 \n이용해 스프링노트에 있는 데이터를 쉽게 다룰 수 있다.\n\n== 요구사항:\n\n* activesupport\n* activeresource\n* oauth\n* ruby-hmac\n\n== 설치:\n\n* sudo gem install springnote_resources\n\n== 개발자키와 사용자키 발급 및 설정:\n\n1. 스프링노트 매시업을 작성하기 위해서는 먼저 컨슈머 토큰이 필요하다. 이 키는 오픈마루 API 센터(https://api.openmaru.com/oauth/new)에서 발급받을 수 있다. \n자세한 내용은 http://dev.springnote.com/pages/1083036 에서 얻을 수 있다.\n\n2. 그리고 액세스 토큰을 발급받아야 한다.자세한 방법은 OAuth 튜토리얼을 참고하기 바란다. http://myruby.net/pages/1154148\n\n3. 이렇게 받은 키를 스프링노트 리소스에서 사용하려면 아래처럼 설정한다.\n\nSpringnote::Base.configuration.set :consumer_token =\u003e 'CK', :consumer_secret =\u003e 'CS',\n  :access_token =\u003e 'AK', :access_secret =\u003e 'AS',\n  :domain =\u003e 'notename'\n\n== 사용법:\n\n# 페이지 불러오기\npage = Springnote::Page.find(144)\nputs page.source\n\n# 페이지 수정하기\npage = Springnote::Page.find(144)\npage.source = '\u003cp\u003eNew Contents\u003c/p\u003e'\npage.save\n\n# 페이지 만들기\npage = Springnote::Page.create :title =\u003e 'NewName', :source =\u003e 'NewContents'\n\n# 페이지 지우기\nSpringnote::Page.find(144).destroy\n\n== LICENSE:\n\n(The MIT License)\n\nCopyright (c) 2007 Bryan Kang and Changshin Lee\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepblue%2Fspringnote_resources","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepblue%2Fspringnote_resources","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepblue%2Fspringnote_resources/lists"}