Search in sources :

Example 1 with Dumper

use of me.perrycate.groupmeutils.Dumper in project groupme-utils by TheGuyWithTheFace.

the class Append method main.

public static void main(String[] args) {
    System.out.println("starting");
    // required info
    String token = "YOUR TOKEN HERE";
    // Test Group
    String groupId = "GROUP ID HERE";
    GroupMe groupme = new GroupMe(token);
    Group group = groupme.getGroup(groupId);
    Dumper dumper = new Dumper(groupme, group);
    dumper.append(new File("testfile.txt"));
    System.out.println("Complete");
}
Also used : Group(me.perrycate.groupmeutils.data.Group) GroupMe(me.perrycate.groupmeutils.api.GroupMe) Dumper(me.perrycate.groupmeutils.Dumper) File(java.io.File)

Example 2 with Dumper

use of me.perrycate.groupmeutils.Dumper in project groupme-utils by TheGuyWithTheFace.

the class TestDump method main.

public static void main(String[] args) {
    // required info
    String token = "YOUR API TOKEN HERE";
    String groupId = "GROUP ID HERE";
    GroupMe groupme = new GroupMe(token);
    Group group = groupme.getGroup(groupId);
    Dumper dumper = new Dumper(groupme, group);
    dumper.dump(new File("testdump.txt"));
    System.out.println("Complete");
}
Also used : Group(me.perrycate.groupmeutils.data.Group) GroupMe(me.perrycate.groupmeutils.api.GroupMe) Dumper(me.perrycate.groupmeutils.Dumper) File(java.io.File)

Aggregations

File (java.io.File)2 Dumper (me.perrycate.groupmeutils.Dumper)2 GroupMe (me.perrycate.groupmeutils.api.GroupMe)2 Group (me.perrycate.groupmeutils.data.Group)2