You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
func loginCombine(){letprovider=MoyaProvider<API>()letcancellable= provider.requestPublisher(.login(phone:"087878787", password:"45454")).sink(receiveCompletion:{ completion in
switch completion {case.finished:print("Network request failed:")
break // Request completed successfullycase.failure(let error):print("Network request failed: \(error)")}}, receiveValue:{ response in
if let statusCode =(response.response)?.statusCode {print("Status Code: \(statusCode)")}// Handle the response data as needed})}
Please give us any sample code so that we can check this.
Also note that pod 'Moya/Combine', '~> 15.0' import CombineMoya is showing No such module 'CombineMoya'
The text was updated successfully, but these errors were encountered:
Shekhar-Das
changed the title
CombineMoya post request is not working.
Can someone teach me that CombineMoya post request is not working.
Sep 25, 2023
Version of Moya 15.0.0
Please wrap code blocks in backticks, like so:
Please give us any sample code so that we can check this.
Also note that pod 'Moya/Combine', '~> 15.0' import CombineMoya is showing No such module 'CombineMoya'
The text was updated successfully, but these errors were encountered: