{"id":16685589,"url":"https://github.com/hiragram/somen","last_synced_at":"2025-08-30T17:12:22.523Z","repository":{"id":98989665,"uuid":"84080450","full_name":"hiragram/Somen","owner":"hiragram","description":null,"archived":false,"fork":false,"pushed_at":"2017-04-09T03:48:27.000Z","size":55,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-02T09:38:34.231Z","etag":null,"topics":["rxswift","swift","twitter","twitter-streaming-api"],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/hiragram.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-06T14:07:25.000Z","updated_at":"2017-04-04T08:00:27.000Z","dependencies_parsed_at":"2024-01-17T00:02:20.374Z","dependency_job_id":null,"html_url":"https://github.com/hiragram/Somen","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/hiragram/Somen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiragram%2FSomen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiragram%2FSomen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiragram%2FSomen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiragram%2FSomen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hiragram","download_url":"https://codeload.github.com/hiragram/Somen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiragram%2FSomen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272878320,"owners_count":25008336,"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-08-30T02:00:09.474Z","response_time":77,"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":["rxswift","swift","twitter","twitter-streaming-api"],"created_at":"2024-10-12T14:47:42.502Z","updated_at":"2025-08-30T17:12:22.499Z","avatar_url":"https://github.com/hiragram.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Somen\n\nSomen provides a way to receive data from streaming API of Twitter with RxSwift observable.\n\n__NOTICE: This library is still version 0 and under development. I do not recommend to use this library in production environment until version 1 release.__\n\n## Example\n\n1. Initialize Somen instance with your authorization tokens.\n\n```swift\nvar somen = Somen.init(consumerKey: \"YOUR_CONSUMER_KEY\",\n                         consumerSecret: \"YOUR_CONSUMER_SECRET\",\n                         accessToken: \"YOUR_ACCESS_TOKEN\",\n                         accessTokenSecret: \"YOUR_ACCESS_TOKEN_SECRET\")\n```\n\n2. Subscribe UserStream API\n\n```swift\nsomen.home().subscribe(onNext: { (event) in\n  switch event {\n  case .newStatus(rawEvent: let e):\n    // process new status event\n    break\n  case .favorite(rawEvent: let e):\n    // process favorite event\n    break\n  default:\n    break\n  }\n})\n```\n\n## Supported streams and events\n\nCurently Somen supports [User streams](https://dev.twitter.com/streaming/userstreams). And following types of events are supported.\n\n- newStatus\n- deleteStatus\n- deleteLocation\n- limitNotice\n- statusWithheld\n- userWithheld\n- stallWarning\n- userUpdate\n- friends\n- directMessage\n- block\n- unblock\n- favorite\n- unfavorite\n- follow\n- unfollow\n- listCreated\n- listDestroyed\n- listUpdated\n- listMemberAdded\n- listMemberRemoved\n- listUserSubscribed\n- listUserUnsubscribed\n- quotedTweet\n\nIf unsupported event was received, the event is processed as `unsupportedEvent` and it has raw event dictionary as the associated value.\n\n## Installation\n\nUsing Carthage:\n\nWrite as follows in Cartfile\n\n```\ngithub \"hiragram/Somen\"\n```\n\nthen \n\n```sh\n$ carthage update\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiragram%2Fsomen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhiragram%2Fsomen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiragram%2Fsomen/lists"}