apiV3SocialsCreateWithHttpInfo method

Future<Response> apiV3SocialsCreateWithHttpInfo({
  1. SocialToken? socialToken,
})

View will login or signin (create) the user from social oauth2.0 provider. Input (default serializer_class_in): { "provider": "facebook", "code": "AQBPBBTjbdnehj51" } + optional "redirect_uri": "/relative/or/absolute/redirect/uri" Output: user data in serializer_class format

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> apiV3SocialsCreateWithHttpInfo({ SocialToken? socialToken, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v3/socials/';

  // ignore: prefer_final_locals
  Object? postBody = socialToken;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}