at_lookup 3.0.1 copy "at_lookup: ^3.0.1" to clipboard
at_lookup: ^3.0.1 copied to clipboard

outdated

A Dart library that contains the core commands that can be used with a secondary server (scan, update, lookup, llookup, plookup, etc.)

example/main.dart

import 'package:at_lookup/at_lookup.dart';

void main(List<String> arguments) async {
  var atLookUpImpl = AtLookupImpl(
    '@alice',
    'root.atsign.org',
    64,
    privateKey: 'privateKey',
    cramSecret: 'cramSecret',
  );

  var key = 'test_key';
  var sharedBy = '@alice';
  var sharedWith = '@bob';
  //update
  print(await atLookUpImpl.update(key, 'test_value', sharedWith: sharedWith));
// lookup
  print(await atLookUpImpl.lookup(key, sharedBy));
// plookup
  print(await atLookUpImpl.plookup(key, sharedBy));
// llookup
  print(await atLookUpImpl.llookup(key,
      sharedBy: sharedBy, sharedWith: sharedWith, isPublic: true));
// delete
  print(await atLookUpImpl.delete(key, sharedWith: '@bob', isPublic: false));
// scan
  print(await atLookUpImpl.scan(regex: '*', sharedBy: '@alice'));
}
8
likes
0
pub points
78%
popularity

Publisher

verified publisheratsign.org

A Dart library that contains the core commands that can be used with a secondary server (scan, update, lookup, llookup, plookup, etc.)

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

at_commons, at_utils, crypto, crypton, path

More

Packages that depend on at_lookup