{"id":17933266,"url":"https://github.com/lunks/wepay","last_synced_at":"2025-04-03T11:16:38.294Z","repository":{"id":10397563,"uuid":"12549565","full_name":"lunks/wepay","owner":"lunks","description":null,"archived":false,"fork":false,"pushed_at":"2013-09-02T21:39:45.000Z","size":108,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T00:38:32.784Z","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/lunks.png","metadata":{"files":{"readme":"README","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":"2013-09-02T21:39:36.000Z","updated_at":"2014-04-23T15:05:08.000Z","dependencies_parsed_at":"2022-07-30T17:38:10.633Z","dependency_job_id":null,"html_url":"https://github.com/lunks/wepay","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/lunks%2Fwepay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lunks%2Fwepay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lunks%2Fwepay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lunks%2Fwepay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lunks","download_url":"https://codeload.github.com/lunks/wepay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246989754,"owners_count":20865331,"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-28T21:38:14.342Z","updated_at":"2025-04-03T11:16:38.277Z","avatar_url":"https://github.com/lunks.png","language":"Ruby","readme":"WePay Ruby SDK\n\nTo use this SDK:\n\n# creates a wepay object you can use to make calls.\n# Set use_stage to true for test/stage, false for production.\nwepay = WePay.new(client_id, client_secret, use_stage)\n\n# get the authorization url \n# you send the user to this url to authorize the application, they will return to your redirect with a code in the get parameters\nredirect_uri = \"http://myexamplesite.com/wepay\"\nurl = wepay.oauth2_authorize_url(redirect_uri)\nredirect_to(url)\n\n# once you have the code you can get an access token\nresponse = wepay.oauth2_token(code, redirect_uri)\naccess_token = response['access_token']\n\n\n# makes a call to the /user endpoint (which requires no parameters)\nresponse = wepay.call('/user', access_token)\n\n# you can also open a payment account for the user\nresponse = wepay.call('/account/create', access_token, {:name =\u003e \"test account\", \"description\" =\u003e \"this is only a test\" })\n\n\n# switching to production\nWhen you want to switch to production, change the _use_stage parameter on the WePay constructer to false. \n\n\ncheck out our developer docs at https://stage.wepay.com/developer for more info\n\nor email api@wepay.com if you have any questions.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flunks%2Fwepay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flunks%2Fwepay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flunks%2Fwepay/lists"}