TeslaSwift icon indicating copy to clipboard operation
TeslaSwift copied to clipboard

Added customizable scopes

Open itsMeDavidV opened this issue 1 year ago • 2 comments

Edited TeslaAPI enum to include customizable scopes for Fleet API. Did not touch .ownerAPI as Owner API is deprecated and its deletion from this package should occur soon.

itsMeDavidV avatar Feb 05 '24 07:02 itsMeDavidV

Can you add a default Scope to the enum to return all the standard scopes so that we dont need to think too much when adding scopes?

jonasman avatar Feb 05 '24 07:02 jonasman

Can you add a default Scope to the enum to return all the standard scopes so that we dont need to think too much when adding scopes?

Sure, standard scopes as in just vehicle-related + openid + offline or all?

itsMeDavidV avatar Feb 06 '24 18:02 itsMeDavidV

@itsMeDavidV like adding all to the variable in the enum

jonasman avatar Feb 25 '24 10:02 jonasman

Hi, i added myself the static var all so we dont need to set the scopes manually

jonasman avatar Mar 07 '24 23:03 jonasman

Nice, sorry about that! Not a lot of spare time these days :/

itsMeDavidV avatar Mar 08 '24 00:03 itsMeDavidV