getAuthorizationUrl function

String getAuthorizationUrl({
  1. required String clientId,
  2. required String clientSecret,
  3. required String redirectUri,
  4. String responseType = 'code',
  5. String state = 'DCEeFWf45A53sdfKef424',
  6. String scope = 'r_liteprofile%20r_emailaddress',
})

Created By Guru (guru@smarttersstudio.com) on 27/06/20 3:39 PM

Implementation

String getAuthorizationUrl({
    required String clientId ,
    required String clientSecret ,
    required String redirectUri,
    String responseType = 'code',
    String state = 'DCEeFWf45A53sdfKef424',
    String scope = 'r_liteprofile%20r_emailaddress'
}){
    return '$linkedInAuthorizationUrl?'
        'client_id=$clientId&'
        'client_secret=$clientSecret&'
        'response_type=$responseType&'
        'state=$state&'
        'scope=$scope&'
        'redirect_uri=$redirectUri';
}