mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 20:55:57 +03:00
[GH-ISSUE #680] OAuth1.0 in SwiftUI #440
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#440
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ZhannySunny on GitHub (Oct 27, 2021).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/680
Hi. I need to implement OAuth1 without authorization to get some data from localhost. Could you please say can I do OAuth1.0 like in your example but in SwiftUI.
// create an instance and retain it
oauthswift = OAuth1Swift(
consumerKey: "",
consumerSecret: ""
)
// do your HTTP request without authorize
oauthswift.client.get("https://api.example.com/foo/bar") { result in
switch result {
case .success(let response):
//....
case .failure(let error):
//...
}
}
I didn't understand where I should handle URL. In SwiftUI there's no UISceneDelegate.
@mesopelagique commented on GitHub (Oct 28, 2021):
do you know search feature https://github.com/OAuthSwift/OAuthSwift/search?q=SwiftUI&type=issues