{"id":39525621,"url":"https://github.com/machinefi/w3bstream-android-sdk","last_synced_at":"2026-01-18T06:23:25.759Z","repository":{"id":62856789,"uuid":"517869309","full_name":"machinefi/w3bstream-android-sdk","owner":"machinefi","description":"Android SDK for W3bStream. Work in Progress.","archived":false,"fork":false,"pushed_at":"2024-04-11T12:06:18.000Z","size":18035,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-08-28T17:02:50.964Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/machinefi.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":"2022-07-26T01:10:01.000Z","updated_at":"2024-01-24T21:39:30.000Z","dependencies_parsed_at":"2022-11-08T02:02:24.721Z","dependency_job_id":null,"html_url":"https://github.com/machinefi/w3bstream-android-sdk","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/machinefi/w3bstream-android-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machinefi%2Fw3bstream-android-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machinefi%2Fw3bstream-android-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machinefi%2Fw3bstream-android-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machinefi%2Fw3bstream-android-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/machinefi","download_url":"https://codeload.github.com/machinefi/w3bstream-android-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machinefi%2Fw3bstream-android-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28531995,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"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":[],"created_at":"2026-01-18T06:23:25.687Z","updated_at":"2026-01-18T06:23:25.747Z","avatar_url":"https://github.com/machinefi.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# W3bstream Android SDK\n\nThe W3bstream Android SDK is a framework that enables connecting data generated by devices and machines in the physical world to the blockchain world using the IoTeX blockchain. W3bStream uses a network of decentralized gateways (W3bStream nodes) to stream encrypted data from IoT devices and machines and create proofs of real-world events on different blockchains. For documentation and APIs, please visit the project [website](https://mainnet.w3bstream.com/). \n\n## Getting started\nTo get started, follow these steps:\n1. Login to w3bstream [https://dev.w3bstream.com/](https://dev.w3bstream.com/)\n2. Create your project on the website\n3. Generate your publisher key and token\n4. Consult the help document at [Geo-location with WASM Sample](https://iotex.larksuite.com/docx/UawQd67JPopjqHxlSZmuV9HjsEh)\n\n### Setting up the dependency\nThe latest release is available on [Maven Central](https://search.maven.org/artifact/com.w3bstream/w3bstream-android/1.0/aar).\n\n```\n    implementation 'com.w3bstream:w3bstream-android:1.0.1'\n```\n\n### Initialization\nIn your app, initialize the SDK with your project values as shown below:\n```\n    val url = \"http://dev.w3bstream.com:8889/srv-applet-mgr/v0/event/eth_0x2ee1d96cb76579e2c64c9bb045443fb3849491d2_geo_example_claim_nft\"\n    val publiserToken = \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJQYXlsb2FkIjoiNjc3ODIwMjA4Mjc0MDIyNCIsImlzcyI6InczYnN0cmVhbSJ9.sN9pPsoRP-bRfKY2i1_qw9fRyigGRK6XT5osrdJbk7A\"\n    val w3bStream by W3bStream.build(\n            HttpService(url)\n                .addHeader(\"Authorization\", publisherToken)\n                .addHeader(\"Content-Type\", \"application/octet-stream\")\n        )\n```\n\n### Make the payload\nCreate the payload in JSON format and then encode it as Base64, as shown below:\n```\n    // The following is the server-verified location information.\n    // If the uploaded location is within 100 meters of the server's location, you can mint an NFT.\n    // {\"latitude\": \"36.702977661503\", \"longitude\": \"117.13273760933\" }\n\n    val latitude = \"36.7026\"\n    val longitude = \"117.13273760933\"\n    val walletAddress = \"0x2eE1d96CB76579e2c64C9BB045443Fb3849491D2\" // NFT receiving address\n    val payload = \"\"\"\n        {\n            \"latitude\": latitude,\n            \"longitude\": longitude,\n            \"walletAddress\": walletAddress\n        }\n    \"\"\"\n```\n\n### Publish event to Webstream server by https\nTo publish events to the W3bstream server via HTTPS, use the following code:\n```   \n    val response = w3bStream.publishEvents(\"DEFAULT\", payload) // type: Event type\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmachinefi%2Fw3bstream-android-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmachinefi%2Fw3bstream-android-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmachinefi%2Fw3bstream-android-sdk/lists"}