-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
82 lines (63 loc) · 2.25 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
Sorauta-Capture-ScreenShot version 0.02
============================
The README is used to introduce the module and provide instructions on
how to install the module, any machine dependencies it may have (for
example C compilers and installed libraries) and any other information
that should be provided before the module is installed.
A README file is required for CPAN modules since CPAN extracts the
README file from a module distribution so that people browsing the
archive can use it get an idea of the modules uses. It is usually a
good idea to provide version information here so that people can
decide whether fixes for the module are worth downloading.
INSTALLATION
To install this module type the following:
perl Makefile.PL
make
make test
make install
HOW TO USE
basic use:
use Sorauta::Capture::ScreenShot;
my $OS = "Mac"; # or Win(but not implement now)
my $CAPTURE_FILE_PATH = "/Users/yuki/Desktop/capture.jpg";
my $INTERVAL_TIME = 0; # if you want to interval, set this var over 0
my $DEBUG = 0;
my $API_URL = "http://api_url/path/to";
my $API_ATTRS = {
file_name => [$CAPTURE_FILE_PATH],
test => 'fugapiyo',
};
# capture test
{
Sorauta::Capture::ScreenShot->new({
os => $OS,
capture_file_path => $CAPTURE_FILE_PATH,
interval_time => $INTERVAL_TIME,
debug => $DEBUG,
})->execute;
}
# capture and send api test
{
Sorauta::Capture::ScreenShot->new({
os => $OS,
capture_file_path => $CAPTURE_FILE_PATH,
interval_time => $INTERVAL_TIME,
debug => $DEBUG,
api_url => $API_URL,
api_attr => $API_ATTRS,
})->execute;
}
DEPENDENCIES
This module requires these other modules and libraries:
CGI::Carp
Data::Dumper
LWP::UserAgent
HTTP::Request::Common
File::Basename
Sorauta::Utility
COPYRIGHT AND LICENCE
Put the correct copyright and licence information here.
Copyright (C) 2012 by Yuki ANAI
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.12.3 or,
at your option, any later version of Perl 5 you may have available.