{"id":26744345,"url":"https://github.com/tachyons/fedena-sdk-ruby","last_synced_at":"2026-03-07T07:31:14.885Z","repository":{"id":56846150,"uuid":"65722423","full_name":"tachyons/fedena-sdk-ruby","owner":"tachyons","description":"Ruby wrapper for fedena api","archived":false,"fork":false,"pushed_at":"2017-04-16T07:30:08.000Z","size":31,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-01T11:28:22.449Z","etag":null,"topics":["admission","fedena-api","students"],"latest_commit_sha":null,"homepage":null,"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/tachyons.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2016-08-15T09:54:12.000Z","updated_at":"2020-05-03T01:37:17.000Z","dependencies_parsed_at":"2022-09-17T11:02:22.667Z","dependency_job_id":null,"html_url":"https://github.com/tachyons/fedena-sdk-ruby","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tachyons/fedena-sdk-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tachyons%2Ffedena-sdk-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tachyons%2Ffedena-sdk-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tachyons%2Ffedena-sdk-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tachyons%2Ffedena-sdk-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tachyons","download_url":"https://codeload.github.com/tachyons/fedena-sdk-ruby/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tachyons%2Ffedena-sdk-ruby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30209719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T05:23:27.321Z","status":"ssl_error","status_checked_at":"2026-03-07T05:00:17.256Z","response_time":53,"last_error":"SSL_read: 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":["admission","fedena-api","students"],"created_at":"2025-03-28T07:18:45.232Z","updated_at":"2026-03-07T07:31:14.869Z","avatar_url":"https://github.com/tachyons.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FedenaSdk\n\nRuby wrapper for fedena api\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'fedena_sdk'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install fedena_sdk\n\n## Usage\n\nInitialize sdk\n```ruby\nclient = FedenaSdk.authenticate do |config| \n  config.client_id = \"\u003cclient_id\u003e\" \n  config.client_secret =  \"\u003cclient_secret\u003e\"\n  config.uri = '\u003cfedena_instance_uri\u003e'\n  config.redirect_uri =  \"\u003capp_redirect_uri\u003e\"\nend \n```\n\n### Generate access token\n#### Using username and password\n```ruby\nFedenaSdk.access_token_from_password('username','password','redirect_uri');\n```\n\n##### Using authcode\n\n* Get authorise url\n```ruby\nclient.auth_code.authorize_url(:redirect_uri =\u003e '')\n```\n* Get auth code from url\n\n* Generate token\n```ruby\ntoken = client.auth_code.get_token(auth_code,{:redirect_uri =\u003e ''},:header_format=\u003e\"Token token=\\\"%s\\\"\")\n```\n\n### News\n\n* Get all News\n\n```ruby\nFedenaSdk::News.all\n```\n\n### User\n\n* Get user details\n\n```ruby\nFedenaSdk::User.find('username')\n```\n\n### School\n\n* Get current school details\n\n```ruby\nFedenaSdk::School.current_school\n```\n\n### Attendance\n* Get attendance status of a student\n\n```ruby\nFedenaSdk::Attendance.show(admission_no,date=\u003e'10-12-2014')\n```\n* Search in attendance entries\n\n```ruby\nFedenaSdk::Attendance.search(query)\n```\n\n* Marking attendance\n\n```ruby\nattendance = FedenaSdk::Attendance.new(student_admission_no: \"\", forenoon: \"\", afternoon: \"\", date: \"\", batch_name: \"\", reason: \"\")\nattendance.save\n```\n\n* Deleting attendance object\n\n```ruby\nattendance.destroy\n```\n\n* Deleting attendance entry by admission_no and date\n\n```ruby\nFedenaSdk::Attendance.destroy(admission_no,date)\n```\n* Editing an attendance entry\n\nattendance.update_attributes(reason: \"new reason\")\n\n### Course\n\n* Get all  courses\n\n```ruby\nFedenaSdk::Course.all\n```\n\n### Batch\n\n* Search for batches\n\n```ruby\nFedenaSdk::Batch.search(query)\n```\n\n### Student\n\n* Search for students\n\n```ruby\nFedenaSdk::Student.search(admission_no_like: \"123\")\n```\n\n* Find student by admission_no\n\n```ruby\nFedenaSdk::Student.find(\u003cadmission_no\u003e)\n```\n\n* Set profile photo for a student\n\n```ruby\nFedenaSdk::Student.new.upload_photo(\"\u003cadmission_no\u003e\",photo)\n```\n\n### BiometricInformation\n\n* Get biometric information\n\n```ruby\nFedenaSdk::BiometricInformation.find(\u003cbiometric_id\u003e)\n```\n### EmployeeAttendance\n### Employee\n\n* Search for employees\n\n```ruby\nFedenaSdk::Employee.search(\"\u003cquery\u003e\")\n```\n### EmployeeCategory\n### EmployeeDepartment\n* Get all employee departments\n\n```ruby\nFedenaSdk::EmployeeDepartment.all\n```\n### EmployeeGrade\n### EmployeeLeaveType\n\n* Get all leave types\n```ruby\nFedenaSdk::EmployeeLeaveType.all\n```\n\n### EmployeePosition\n\n* Get all employe postions\n```ruby\n FedenaSdk::EmployeePosition.all\n```\n\n### Event\n### ExamGroup\n\n* Search for exam groups\n```ruby\nFedenaSdk::ExamGroup.search(\"\u003cquery\u003e\")\n```\n\n### ExamScore\n### FinanceTransaction\n* Search for finance transaction\n\n```ruby\nFedenaSdk::FinanceTransaction.search(\"\u003cquery\u003e\")\n```\n\n### GradingLevel\n### Payroll\n### PayrollGroup\n### Reminder\n### StudentCategory\n\n* Get all student categories\n```ruby\nFedenaSdk::StudentCategory.all\n```\n\n### Subject\n### Timetable\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/tachyons/fedena-sdk-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftachyons%2Ffedena-sdk-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftachyons%2Ffedena-sdk-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftachyons%2Ffedena-sdk-ruby/lists"}