nhost_functions_dart 1.0.0-dev.5 copy "nhost_functions_dart: ^1.0.0-dev.5" to clipboard
nhost_functions_dart: ^1.0.0-dev.5 copied to clipboard

Nhost Dart Functions Service SDK

Nhost Functions Dart SDK #

Pub nhost_dart tests

Nhost Functions API for Dart

Getting Started #

Get your subdomain and region from nhost dashboard

import 'package:nhost_functions_dart/nhost_functions_dart.dart';

void main() async {
    final functions = FunctionsClient(
    subdomain: 'subdomain',
    region: 'region',
  );

  print('Running serverless function /hello');
  final helloResponse = await functions.callFunction(
    '/hello',
    query: {'name': 'Universe'},
  );
  print('Response: ${helloResponse.body}');
}

Latest Release #

dependencies:
  nhost_functions_dart: ^4.0.0