public IObservable <IUser> SignUpWithGoogle(string googleToken) { Ensure.Argument.IsNotNull(googleToken, nameof(googleToken)); var parameters = new GoogleSignUpParameters { GoogleAccessToken = googleToken, Workspace = new WorkspaceParameters { InitialPricingPlan = PricingPlans.Free } }; var json = serializer.Serialize(parameters, SerializationReason.Post, null); return(CreateObservable <User>(endPoints.PostWithGoogle, new HttpHeader[0], json, checkForApiToken)); }
public IObservable <IUser> SignUpWithGoogle(string googleToken, bool termsAccepted, int countryId) { Ensure.Argument.IsNotNull(googleToken, nameof(googleToken)); var parameters = new GoogleSignUpParameters { GoogleAccessToken = googleToken, Workspace = new WorkspaceParameters { InitialPricingPlan = PricingPlans.Free }, TermsAccepted = termsAccepted, CountryId = countryId }; var json = serializer.Serialize(parameters, SerializationReason.Post, null); return(SendRequest <User>(endPoints.PostWithGoogle, new HttpHeader[0], json)); }