{"id":25874641,"url":"https://github.com/lyft/lyft-go-sdk","last_synced_at":"2025-03-02T09:28:35.278Z","repository":{"id":66215786,"uuid":"85976998","full_name":"lyft/lyft-go-sdk","owner":"lyft","description":"Go SDK for the Lyft Public API","archived":false,"fork":false,"pushed_at":"2018-02-27T20:58:51.000Z","size":52,"stargazers_count":6,"open_issues_count":2,"forks_count":11,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-06-20T06:24:01.848Z","etag":null,"topics":["lyft"],"latest_commit_sha":null,"homepage":"https://www.lyft.com/developers","language":"Go","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/lyft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2017-03-23T17:16:15.000Z","updated_at":"2023-01-04T00:10:50.000Z","dependencies_parsed_at":"2023-02-25T02:15:11.090Z","dependency_job_id":null,"html_url":"https://github.com/lyft/lyft-go-sdk","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyft%2Flyft-go-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyft%2Flyft-go-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyft%2Flyft-go-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyft%2Flyft-go-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lyft","download_url":"https://codeload.github.com/lyft/lyft-go-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241485216,"owners_count":19970441,"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":["lyft"],"created_at":"2025-03-02T09:28:34.717Z","updated_at":"2025-03-02T09:28:35.265Z","avatar_url":"https://github.com/lyft.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DEPRECATION NOTICE\n\nPlease note that this SDK is deprecated and is no longer officially supported by Lyft.\n\n# Lyft Go SDK\n\nlyft-go-sdk is a Go client library for accessing the [Lyft API](https://developer.lyft.com/docs).\n\n## Registration\n- You must first create a Lyft Developer account [here](https://www.lyft.com/developers).\n- Once registered, create a [new application here](https://https://www.lyft.com/developers/manage).\n- Your new application will be assigned a Client ID and Client Secret (for use with two- or three-legged OAuth) and a Client Token (for use with public endpoints that don't require user context).\n\n## Installation\n\n```console\ngo get github.com/lyft/lyft-go-sdk/lyft\n```\n\n## Usage\n\nThe `lyft` package provides a `Client` for accessing the Lyft API. Authentication is handled by the `http.Client` passed to `NewAPIClient` to handle OAuth2. The Lyft API uses the [Client Credentials](https://developer.lyft.com/docs/authentication#section-client-credentials-2-legged-flow-for-public-endpoints) grant for public endpoints and the [Authorization Code](https://developer.lyft.com/docs/authentication#section-3-legged-flow-for-accessing-user-specific-endpoints) grant for endpoints that require a user context; see example for the [former](https://github.com/lyft/lyft-go-sdk/blob/master/examples/public/main.go) and the [latter](https://github.com/lyft/lyft-go-sdk/blob/master/examples/user/main.go). \n\n```go\nclient := lyft.NewAPIClient(httpClient, \"my-sample-app\")\n\n// Get a list of rides taken by the authenticated user within the past 30 days.\nresult, resp, err := client.UserApi.GetRides(time.Now().AddDate(0, 0, -30), nil)\n\n// Get driver ETA for the specified location.\nresult, _, err := client.PublicApi.GetETA(37.7763, -122.3918, nil)\n\n// Preset Prime Time to 25% in the specified location.\nresp, err := client.SandboxApi.SetPrimeTime(lyft.SandboxPrimetime{\n\tLat:                 37.7884,\n\tLng:                 -122.4076,\n\tPrimetimePercentage: \"25%\",\n})\n```\n\n## Documentation for API Endpoints\n\nAll URIs are relative to *https://api.lyft.com/v1*\n\nClass | Method | HTTP request | Description\n------------ | ------------- | ------------- | -------------\n*PublicApi* | [**GetCost**](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/PublicApi.md#getcost) | **Get** /cost | Cost estimates\n*PublicApi* | [**GetDrivers**](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/PublicApi.md#getdrivers) | **Get** /drivers | Available drivers nearby\n*PublicApi* | [**GetETA**](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/PublicApi.md#geteta) | **Get** /eta | Pickup ETAs\n*PublicApi* | [**GetRideTypes**](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/PublicApi.md#getridetypes) | **Get** /ridetypes | Types of rides\n*SandboxApi* | [**SetPrimeTime**](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/SandboxApi.md#setprimetime) | **Put** /sandbox/primetime | Preset Prime Time percentage\n*SandboxApi* | [**SetRideStatus**](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/SandboxApi.md#setridestatus) | **Put** /sandbox/rides/{id} | Propagate ride through ride status\n*SandboxApi* | [**SetRideTypeAvailability**](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/SandboxApi.md#setridetypeavailability) | **Put** /sandbox/ridetypes/{ride_type} | Driver availability for processing ride request\n*SandboxApi* | [**SetRideTypes**](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/SandboxApi.md#setridetypes) | **Put** /sandbox/ridetypes | Preset types of rides for sandbox\n*UserApi* | [**CancelRide**](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/UserApi.md#cancelride) | **Post** /rides/{id}/cancel | Cancel a ongoing requested ride\n*UserApi* | [**GetProfile**](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/UserApi.md#getprofile) | **Get** /profile | The user\u0026#39;s general info\n*UserApi* | [**GetRide**](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/UserApi.md#getride) | **Get** /rides/{id} | Get the ride detail of a given ride ID\n*UserApi* | [**GetRideReceipt**](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/UserApi.md#getridereceipt) | **Get** /rides/{id}/receipt | Get the receipt of the rides.\n*UserApi* | [**GetRides**](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/UserApi.md#getrides) | **Get** /rides | List rides\n*UserApi* | [**NewRide**](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/UserApi.md#newride) | **Post** /rides | Request a Lyft\n*UserApi* | [**SetRideDestination**](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/UserApi.md#setridedestination) | **Put** /rides/{id}/destination | Update the destination of the ride\n*UserApi* | [**SetRideRating**](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/UserApi.md#setriderating) | **Put** /rides/{id}/rating | Add the passenger\u0026#39;s rating, feedback, and tip\n\n\n## Documentation For Models\n\n - [ApiError](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/ApiError.md)\n - [CancellationCost](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/CancellationCost.md)\n - [CancellationCostError](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/CancellationCostError.md)\n - [CancellationRequest](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/CancellationRequest.md)\n - [Charge](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/Charge.md)\n - [Cost](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/Cost.md)\n - [CostEstimate](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/CostEstimate.md)\n - [CostEstimateResponse](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/CostEstimateResponse.md)\n - [CurrentRideLocation](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/CurrentRideLocation.md)\n - [DriverDetail](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/DriverDetail.md)\n - [ErrorDetail](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/ErrorDetail.md)\n - [Eta](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/Eta.md)\n - [EtaEstimateResponse](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/EtaEstimateResponse.md)\n - [LatLng](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/LatLng.md)\n - [LineItem](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/LineItem.md)\n - [Location](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/Location.md)\n - [NearbyDriver](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/NearbyDriver.md)\n - [NearbyDriversByRideType](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/NearbyDriversByRideType.md)\n - [NearbyDriversResponse](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/NearbyDriversResponse.md)\n - [PassengerDetail](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/PassengerDetail.md)\n - [PickupDropoffLocation](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/PickupDropoffLocation.md)\n - [PricingDetails](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/PricingDetails.md)\n - [Profile](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/Profile.md)\n - [RatingRequest](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/RatingRequest.md)\n - [Ride](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/Ride.md)\n - [RideDetail](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/RideDetail.md)\n - [RideLocation](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/RideLocation.md)\n - [RideProfileEnum](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/RideProfileEnum.md)\n - [RideReceipt](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/RideReceipt.md)\n - [RideRequest](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/RideRequest.md)\n - [RideRequestError](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/RideRequestError.md)\n - [RideStatusEnum](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/RideStatusEnum.md)\n - [RideType](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/RideType.md)\n - [RideTypeEnum](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/RideTypeEnum.md)\n - [RideTypeEnumWithOther](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/RideTypeEnumWithOther.md)\n - [RideTypesResponse](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/RideTypesResponse.md)\n - [RidesResponse](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/RidesResponse.md)\n - [SandboxDriverAvailability](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/SandboxDriverAvailability.md)\n - [SandboxPrimetime](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/SandboxPrimetime.md)\n - [SandboxRideStatus](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/SandboxRideStatus.md)\n - [SandboxRideType](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/SandboxRideType.md)\n - [SandboxRideUpdate](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/SandboxRideUpdate.md)\n - [Tip](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/Tip.md)\n - [TipParams](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/TipParams.md)\n - [UserDetail](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/UserDetail.md)\n - [VehicleDetail](https://github.com/lyft/lyft-go-sdk/tree/master/lyft/docs/VehicleDetail.md)\n\n\n## Support\n\nIf you're looking for help configuring or using the SDK, or if you have general questions related to our APIs, the Lyft Developer Platform team provides support through our [forum](https://devcommunity.lyft.co/) as well as on Stack Overflow (using the `lyft-api` tag).\n\n## Reporting security vulnerabilities\n\nIf you've found a vulnerability or a potential vulnerability in the Lyft Go SDK,\nplease let us know at security@lyft.com. We'll send a confirmation email to\nacknowledge your report, and we'll send an additional email when we've\nidentified the issue positively or negatively.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyft%2Flyft-go-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flyft%2Flyft-go-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyft%2Flyft-go-sdk/lists"}