【问题标题】:send data method GET in dart (Flutter)在 dart (Flutter) 中发送数据方法 GET
【发布时间】:2020-02-23 01:49:17
【问题描述】:

已经使用http,Uri解析......

登录成功,获取地址无效

【问题讨论】:

    标签: http flutter dart dio


    【解决方案1】:

    这里你可以使用 dio 进行网络调用:

    try {
      _dio.options.contentType = Headers.jsonContentType;
      Response response = await _dio.post(
          baseUrl + '/verify-otp',
          data: {"activation_token": ""}
      );
      return response;
    } catch (error, stacktrace) {
      print("Exception occured: $error stackTrace: $stacktrace");
      return error;
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-17
      • 2012-05-11
      • 1970-01-01
      • 2021-08-12
      • 2011-07-28
      • 2021-06-05
      • 2021-12-13
      • 1970-01-01
      相关资源
      最近更新 更多