{"id":28906832,"url":"https://github.com/julietrb1/onair-api-go-client","last_synced_at":"2025-07-02T19:32:56.183Z","repository":{"id":299368458,"uuid":"1002758022","full_name":"julietrb1/onair-api-go-client","owner":"julietrb1","description":"Unofficial Go client library to query OnAir via the official public API.","archived":false,"fork":false,"pushed_at":"2025-06-16T06:43:05.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-23T11:01:38.836Z","etag":null,"topics":["games","go","onair","simulation","strategy","utility"],"latest_commit_sha":null,"homepage":"","language":"Go","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/julietrb1.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":"2025-06-16T05:17:04.000Z","updated_at":"2025-06-16T06:46:53.000Z","dependencies_parsed_at":"2025-06-16T07:42:42.784Z","dependency_job_id":"2c7406b1-7709-4fdd-944b-70700dbcd40f","html_url":"https://github.com/julietrb1/onair-api-go-client","commit_stats":null,"previous_names":["julietrb1/onair-api-go-client"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/julietrb1/onair-api-go-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julietrb1%2Fonair-api-go-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julietrb1%2Fonair-api-go-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julietrb1%2Fonair-api-go-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julietrb1%2Fonair-api-go-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/julietrb1","download_url":"https://codeload.github.com/julietrb1/onair-api-go-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julietrb1%2Fonair-api-go-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263203455,"owners_count":23430035,"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":["games","go","onair","simulation","strategy","utility"],"created_at":"2025-06-21T15:10:02.049Z","updated_at":"2025-07-02T19:32:56.167Z","avatar_url":"https://github.com/julietrb1.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OnAir API Go Client\n\nAn unofficial Go client library for interacting with the [OnAir](https://www.onair.company) API. OnAir is a proprietary commercial flight simulation and management platform that provides a realistic airline management experience.\n\n## Installation\n\n```bash\ngo get github.com/julietrb1/onair-api-go-client\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/julietrb1/onair-api-go-client/api\"\n\t\"log\"\n)\n\nfunc main() {\n\tclient, err := api.NewOnAirAPI()\n\tif err != nil {\n\t\tlog.Fatalf(\"Failed to create OnAir API client: %v\", err)\n\t}\n\n\tairport, err := client.GetAirport(\"KLAX\")\n\tif err != nil {\n\t\tlog.Fatalf(\"Failed to get airport: %v\", err)\n\t}\n\n\tfmt.Printf(\"Airport: %s (%s)\\n\", airport.Name, airport.ICAO)\n}\n```\n\n## Available Methods\n\nThe client provides the following methods to access various OnAir resources:\n\n### Airport and Aircraft Methods\n- `GetAirport(icao string)` - Fetches an airport by its ICAO\n- `GetAircraftAtAirport(icao string)` - Fetches all aircraft at a specific airport\n- `GetAircraftType(aircraftTypeID string)` - Fetches an aircraft type by its ID\n- `GetAircraftEconomicDetails(aircraftID string)` - Gets financial and operational information for an aircraft\n- `GetAircraftFlights(aircraftID string, startIndex int, limit int)` - Gets all flights that an aircraft has performed\n- `GetAircraftMaintenanceCosts(aircraftID string)` - Gets repair, engine replacement, inspection, and checkup costs for an aircraft\n\n### Virtual Airline Methods\n- `GetVA(vaID string)` - Gets details for a given Virtual Airline\n- `GetVAMembers(vaID string)` - Gets details for members of a given Virtual Airline\n- `GetVAShareholders(vaID string)` - Gets details for shareholders of a given Virtual Airline\n- `GetVARoles(vaID string)` - Gets details for roles of a given Virtual Airline\n\n### Company Methods\n- `GetCompany(companyID string)` - Gets a company\n- `GetCompanyBalanceSheet(companyID string)` - Gets a company's accounting information relating to assets and liabilities\n- `GetCompanyCashFlow(companyID string)` - Gets a company's transaction information\n- `GetCompanyDashboard(companyID string)` - Gets a company's statistical summary\n- `GetCompanyEmployees(companyID string)` - Gets a company's employees\n- `GetCompanyFBOs(companyID string)` - Gets a company's FBOs\n- `GetCompanyFleet(companyID string)` - Gets aircraft rented, leased, or owned by a company\n- `GetCompanyFlights(companyID string)` - Gets flights registered by a company\n- `GetCompanyIncomeStatement(companyID string)` - Gets revenue and expenditure information for a company\n- `GetCompanyCompletedJobs(companyID string)` - Gets completed job information for a company\n- `GetCompanyPendingJobs(companyID string)` - Gets pending job information for a company\n- `GetCompanyMissionFlightTracks(companyID string)` - Gets pairs of missions and flights for a company\n- `GetCompanyNotifications(companyID string)` - Gets notifications posted for a company\n\n### Employee Methods\n- `GetEmployee(employeeID string)` - Gets an employee's information\n\n### FBO Methods\n- `GetFBOJobs(fboID string)` - Gets all jobs available at an FBO\n\n### Flight Methods\n- `GetFlight(flightID string)` - Gets a flight including airborne time, max. bank, and XP earned\n\n## Methods Yet To Be Implemented\n\nThe following API endpoints are not yet implemented with no expected dates:\n\n- `/company/\u003cid\u003e/workorders`\n- `/company/\u003cid\u003e/workorders/\u003caircraftid\u003e`\n\n## Authentication\n\nYou need an OnAir API key to use this client. Provide it when calling `NewOnAirAPI`.\n\n## License\n\nSee [LICENSE](LICENSE). I do not represent OnAir - this contribution is a work of passion only.\n\nPlease note that while the code and documentation of this project are licensed on their own, the concepts and the data pulled from [OnAir](https://www.onair.company) are proprietary and subject to [OnAir's terms and conditions](https://www.onair.company/terms-conditions/).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulietrb1%2Fonair-api-go-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulietrb1%2Fonair-api-go-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulietrb1%2Fonair-api-go-client/lists"}