{"id":18039510,"url":"https://github.com/spaceeec/crux_rest","last_synced_at":"2025-03-27T10:32:13.212Z","repository":{"id":52198007,"uuid":"131035281","full_name":"SpaceEEC/crux_rest","owner":"SpaceEEC","description":"A Discord API rest library","archived":false,"fork":false,"pushed_at":"2022-01-09T12:40:00.000Z","size":1682,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"trunk","last_synced_at":"2024-05-12T10:32:04.132Z","etag":null,"topics":["discord","discord-api","elixir","hacktoberfest","library","rest"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/SpaceEEC.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}},"created_at":"2018-04-25T16:33:52.000Z","updated_at":"2023-05-14T14:38:32.000Z","dependencies_parsed_at":"2022-09-05T02:51:43.661Z","dependency_job_id":null,"html_url":"https://github.com/SpaceEEC/crux_rest","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpaceEEC%2Fcrux_rest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpaceEEC%2Fcrux_rest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpaceEEC%2Fcrux_rest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpaceEEC%2Fcrux_rest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpaceEEC","download_url":"https://codeload.github.com/SpaceEEC/crux_rest/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245127940,"owners_count":20565203,"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":["discord","discord-api","elixir","hacktoberfest","library","rest"],"created_at":"2024-10-30T14:09:35.857Z","updated_at":"2025-03-27T10:32:12.903Z","avatar_url":"https://github.com/SpaceEEC.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crux.Rest [![](https://github.com/SpaceEEC/crux_rest/workflows/Tests/badge.svg?event=push\u0026branch=trunk)](https://github.com/SpaceEEC/crux_rest/actions) [![](https://github.com/SpaceEEC/crux_rest/workflows/Documentation/badge.svg?event=push\u0026branch=trunk)](https://spaceeec.github.io/crux_rest)\n\nLibrary providing rest functions and rate limiting for the [Discord API](https://discord.com/developers/docs/).\n\n## Useful links\n\n - [Documentation](https://hexdocs.pm/crux_rest/0.2.2/)\n - [Github](https://github.com/SpaceEEC/crux_rest/)\n - [Changelog](https://github.com/SpaceEEC/crux_rest/releases/tag/0.2.2/)\n - [Crux Libraries Overview](https://github.com/SpaceEEC/crux)\n - [Trunk Documentation](https://spaceeec.github.io/crux_rest/)\n\n## Installation\n\nThe library can be installed by adding `crux_rest` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:crux_rest, \"~\u003e 0.2.2\"}\n  ]\nend\n```\n\n## Usage\n\nFor example:\n\n```elixir\n  iex\u003e defmodule MyBot.Rest do\n  ...\u003e   use Crux.Rest\n  ...\u003e end\n  {:module, MyBot.Rest, \u003c\u003c...\u003e\u003e, :ok}\n\n  iex\u003e {:ok, pid} = MyBot.Rest.start_link(token: \"token\")\n  {:ok, #PID\u003c0.100.0\u003e}\n\n  iex\u003e MyBot.Rest.create_message!(445290716198076427, content: \"Hello there!\")\n  %Crux.Structs.Message{\n    content: \"Hello there!\",\n    author: %Crux.Structs.User{...},\n    ...\n  }\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspaceeec%2Fcrux_rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspaceeec%2Fcrux_rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspaceeec%2Fcrux_rest/lists"}