draw 0.1.1 copy "draw: ^0.1.1" to clipboard
draw: ^0.1.1 copied to clipboard

outdatedDart 1 only

A Reddit API wrapper for Dart, inspired by PRAW.

example/example.dart

// Copyright (c) 2018, the Dart Reddit API Wrapper project authors.
// Please see the AUTHORS file for details. All rights reserved.
// Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.

import 'dart:async';
import 'package:draw/draw.dart';

Future main() async {
  // Create the `Reddit` instance and authenticate
  Reddit reddit = await Reddit.createInstance(
    clientId: CLIENT_ID,
    clientSecret: SECRET,
    userAgent: AGENT_NAME,
    username: "DRAWApiOfficial",
    password: "hunter12", // Fake
  );

  // Retrieve information for the currently authenticated user
  Redditor currentUser = await reddit.user.me();
  // Outputs: My name is DRAWApiOfficial
  print("My name is ${currentUser.displayName}");
}
20
likes
0
pub points
57%
popularity

Publisher

unverified uploader

A Reddit API wrapper for Dart, inspired by PRAW.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

collection, http, ini, oauth2, path, quiver

More

Packages that depend on draw