{"id":24091074,"url":"https://github.com/ochiengotieno304/streamsb-ruby","last_synced_at":"2026-06-05T20:31:31.411Z","repository":{"id":65083783,"uuid":"581785325","full_name":"ochiengotieno304/streamsb-ruby","owner":"ochiengotieno304","description":"Unofficial StreamSB Ruby Client","archived":false,"fork":false,"pushed_at":"2023-03-19T20:40:47.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T00:52:49.871Z","etag":null,"topics":["api-wrapper","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ochiengotieno304.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-12-24T10:23:18.000Z","updated_at":"2023-05-20T20:47:27.000Z","dependencies_parsed_at":"2023-07-19T17:51:52.620Z","dependency_job_id":null,"html_url":"https://github.com/ochiengotieno304/streamsb-ruby","commit_stats":null,"previous_names":["ochiengotieno304/streamsb-ruby"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ochiengotieno304/streamsb-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ochiengotieno304%2Fstreamsb-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ochiengotieno304%2Fstreamsb-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ochiengotieno304%2Fstreamsb-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ochiengotieno304%2Fstreamsb-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ochiengotieno304","download_url":"https://codeload.github.com/ochiengotieno304/streamsb-ruby/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ochiengotieno304%2Fstreamsb-ruby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285681625,"owners_count":27213755,"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","status":"online","status_checked_at":"2025-11-21T02:00:06.175Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-wrapper","ruby"],"created_at":"2025-01-10T07:12:21.505Z","updated_at":"2025-11-21T20:03:12.112Z","avatar_url":"https://github.com/ochiengotieno304.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Streamsb Ruby Client\n\n[![Gem Version](https://badge.fury.io/rb/streamsb.svg)](https://badge.fury.io/rb/streamsb)\n\n## Installation\n\nInstall the gem and add to the application's Gemfile by executing:\n\n    bundle add streamsb\n\nIf bundler is not being used to manage dependencies, install the gem by executing:\n\n    gem install streamsb\n\nAlternatively, you can opt for Github's installation, add this to your gem file:\n\n    gem 'streamsb', github: 'ochiengotieno304/streamsb-ruby'\n\n## Usage\n\n### Initialize Streamsb Client\n\n```ruby\nrequire \"streamsb\"\n\n@client = Streamsb::Client.new(api_key: ENV['STREAMSB_API_KEY'])\n```\n\nMake API calls using the @client object\n\n### 1. Account\n\n#### 1.1 Info\n\n```ruby\naccount_info = @client.account_info\n```\n\n#### 1.2 Stats\n\n```ruby\naccount_info = @client.account_stats\n```\n\n### 2. File\n\n#### 2.1 File Info\n\n```ruby\nfile_info = @client.file_info(file_code)\n```\n\n- `file_code`: file code `REQUIRED`\n\n#### 2.2 Rename File\n\n```ruby\nrename_file = @client.rename_file(file_code, title, name)\n```\n\n- `file_code`: file code `REQUIRED`\n- `title`: new file title `REQUIRED`\n- `name`: new file name `REQUIRED`\n\n#### 2.3 Clone File\n\n```ruby\nclone_info = @client.clone_file(file_code)\n```\n\n- `file_code`: file code `REQUIRED`\n\n#### 2.4 List Files\n\n```ruby\nfile_list = @client.list_files(page, per_page, fld_id, is_public, created, title)\n\n```\n\n- `page`: page number `OPTIONAL`,\n- `per_page`: results per page `OPTIONAL`\n- `fld_id`: folder id `OPTIONAL`\n- `is_public`: show public (1) or private (0) files only `OPTIONAL`\n- `created`: show only files uploaded after timestamp `OPTIONAL`\n- `title`: filter video titles `OPTIONAL`\n\n#### 2.5 Get Direct All\n\n```ruby\ndirect_all = @client.get_direct_all(file_code)\n```\n\n- `file_code`: file code `REQUIRED`\n\n#### 2.6 Get Direct Quality\n\n```ruby\ndirect_quality = @client.get_direct_quality(file_code, quality)\n```\n\n- `file_code`: file code `REQUIRED`\n- `quality`: video quality if exist, possible values: `n` , `h` , `l` `OPTIONAL`\n\n### 2.7 Set Folder\n\n```ruby\nset_folder = @client.set_folder(file_code, folder_id)\n```\n\n- `file_code`: file code `REQUIRED`\n- `folder_id`: folder id `REQUIRED`\n\n## 3. Folder\n\n### 3.1 List Files\n\n```ruby\nfiles = @client.folder_list(folder_id)\n```\n\n- `folder_id`: folder id `REQUIRED`\n\n### 3.2 Create Folder\n\n```ruby\nfolder = @client.create_folder(name, folder_id)\n```\n\n- `name`: folder name `REQUIRED`\n- `folder_id`: parent folder id `OPTIONAL`\n\n## 4. Upload File\n\n### 4.1 Get Server\n\n```ruby\nupload_server = @client.upload_server\n```\n\n### 4.2 Upload File\n\n\u003e **Note:**\n\u003e Will be in later realeases\n\n## 5. Upload Url\n\n### 5.1 Add Url\n\n```ruby\nurl = @client.add_url(url)\n```\n\n- `url`: upload url `REQUIRED`\n\n### 5.2 List Url\n\n```ruby\nurls = @client.list_url\n```\n\n### 5.3 Status\n\n```ruby\nstatus = @client.url_status(file_code)\n```\n\n- `file_code`: file_code `REQUIRED`\n\n### 5.4 Action\n\n\u003e **Note:**\n\u003e Will be in later releases\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at \u003chttps://github.com/ochiengotieno304/streamsb-ruby\u003e. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/ochiengotieno304/streamsb-ruby/blob/main/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Streamsb project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/ochiengotieno304/streamsb-ruby/blob/main/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fochiengotieno304%2Fstreamsb-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fochiengotieno304%2Fstreamsb-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fochiengotieno304%2Fstreamsb-ruby/lists"}