{"id":44574508,"url":"https://github.com/jordigulley/ticks","last_synced_at":"2026-02-17T14:00:49.142Z","repository":{"id":247595334,"uuid":"826003676","full_name":"jordigulley/ticks","owner":"jordigulley","description":"Simple, ergonomic Rust wrapper for the TickTick Open API","archived":false,"fork":false,"pushed_at":"2024-07-10T05:38:18.000Z","size":20,"stargazers_count":1,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-14T09:26:17.284Z","etag":null,"topics":["rust","ticktick","ticktick-api","wrapper"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/ticks","language":"Rust","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/jordigulley.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2024-07-08T23:36:27.000Z","updated_at":"2024-08-17T23:04:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"a7466551-823e-4f23-afa5-e422ef809b05","html_url":"https://github.com/jordigulley/ticks","commit_stats":null,"previous_names":["jordi-star/ticks","jordigulley/ticks"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jordigulley/ticks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordigulley%2Fticks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordigulley%2Fticks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordigulley%2Fticks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordigulley%2Fticks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jordigulley","download_url":"https://codeload.github.com/jordigulley/ticks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordigulley%2Fticks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29546744,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T13:00:00.370Z","status":"ssl_error","status_checked_at":"2026-02-17T12:57:14.072Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["rust","ticktick","ticktick-api","wrapper"],"created_at":"2026-02-14T04:10:36.270Z","updated_at":"2026-02-17T14:00:49.125Z","avatar_url":"https://github.com/jordigulley.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ticks\nSimple, ergonomic Rust wrapper for the TickTick Open API\n\n![docs.rs](https://img.shields.io/docsrs/ticks)\n## Getting Started\nFirst, register your application with the TickTick Developer Center:\n\u003e To get started using the TickTick Open API, you will need to register your application and obtain a client ID and client secret. You can register your application by visiting the [TickTick Developer Center](https://developer.ticktick.com/manage). Once registered, you will receive a client ID and client secret which you will use to authenticate your requests.\n\nOnce you have registered your application, add `ticks` to your project's `Cargo.toml`:\n```\ncargo add ticks\n```\nTo use the TickTick API, you must authorize your app at runtime. Let's talk about **Authorization**.\n\n## Authorization\nThe TickTick API uses [OAuth](https://oauth.net/2/) for authentication.\nTicks handles most of the authentication for you, leaving only reading the API's HTTP OAuth response to you.\n```rust\n/// Get Authorization URL, this is the link the user must visit to allow our Application access to their account.\n/// redirect_uri must be the same URL specified in the TickTick Developer Center.\nlet auth = Authorization::begin_auth(/* client_id */, /* redirect_uri */)?;\nprintln!(\"Browse to: {:?}\", auth.get_url());\n/// Wait for response from TickTick's API. TickTick will send the required auth info over HTTP to the redirect_uri we specified.\nlet (access_code, state) = /* Get access_code \u0026 state from redirect_uri over HTTP */;\n/// Get access token\nlet token = auth.finish_auth({client_secret}, code, state).await?;\n/// Done! Create TickTick instance using AccessToken.\nlet ticktick = TickTick::new(token.clone())?;\n```\nFor testing, you may want to set your redirect_uri to `localhost`. To read the OAuth HTTP Response locally, try a `TcpListener`\n```rust\nlet listener = TcpListener::bind(\"127.0.0.1:{port of redirect_uri}\")?;\nlet (mut stream, _) = listener.accept()?;\nlet mut stream_reader = BufReader::new(\u0026stream);\nlet mut response = String::new();\nstream_reader.read_line(\u0026mut response)?;\nstream.write_all(\"HTTP/1.1 200 OK\".as_bytes())?;\nprintln!(\"Response {:?}\", response);\n```\n\n## Documentation\nThe docs can be found at https://docs.rs/ticks/latest.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordigulley%2Fticks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjordigulley%2Fticks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordigulley%2Fticks/lists"}