<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">NAME
    WebService::MyAffiliates - Interface to myaffiliates.com API

SYNOPSIS
        use WebService::MyAffiliates;

        my $aff = WebService::MyAffiliates-&gt;new(
            user =&gt; 'user',
            pass =&gt; 'pass',
            host =&gt; 'admin.example.com'
        );

        my $token_info = $aff-&gt;decode_token($token) or die $aff-&gt;errstr;

DESCRIPTION
    WebService::MyAffiliates is Perl interface to
    &lt;http://www.myaffiliates.com/xmlapi&gt;

    It's incompleted. patches are welcome with pull-requests of
    &lt;https://github.com/binary-com/perl-WebService-MyAffiliates&gt;

METHODS
  new
    *   user

        required. the Basic Auth username.

    *   pass

        required. the Basic Auth password.

    *   host

        required. the Basic Auth url/host.

  get_users
    Feed 1: Users Feed

    &lt;https://myaffiliates.atlassian.net/wiki/display/PUB/Feed+1%3A+Users+Fee
    d&gt;

        my $user_info = $aff-&gt;get_users(USER_ID =&gt; $id);
        my $user_info = $aff-&gt;get_users(STATUS =&gt; 'new');
        my $user_info = $aff-&gt;get_users(VARIABLE_NAME =&gt; 'n', VARIABLE_VALUE =&gt; 'v');

  get_user
        my $user_info = $aff-&gt;get_user($id); # { ID =&gt; ... }

    call get_users(USER_ID =&gt; $id) with the top evel USER key removed.

  decode_token
    Feed 4: Decode Token

    &lt;https://myaffiliates.atlassian.net/wiki/display/PUB/Feed+4%3A+Decode+To
    ken&gt;

        my $token_info = $aff-&gt;decode_token($token); # $token_info is a HASH which contains TOKEN key
        my $token_info = $aff-&gt;decode_token($tokenA, $tokenB);

  encode_token
    Feed 5: Encode Token

    &lt;https://myaffiliates.atlassian.net/wiki/display/PUB/Feed+5%3A+Encode+To
    ken&gt;

        my $token_info = $aff-&gt;encode_token(
            USER_ID  =&gt; 1,
            SETUP_ID =&gt; 7
        );

  get_user_transactions
    Feed 6: User Transactions Feed

    &lt;https://myaffiliates.atlassian.net/wiki/display/PUB/Feed+6%3A+User+Tran
    sactions+Feed&gt;

        my $transactions = $aff-&gt;get_user_transactions(
            'USER_ID'   =&gt; $id,
            'FROM_DATE' =&gt; '2011-12-31',
            'TO_DATE'   =&gt; '2012-01-31',
        );

AUTHOR
    Binary.com &lt;fayland@binary.com&gt;

COPYRIGHT
    Copyright 2014- Binary.com

LICENSE
    This library is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself.

SEE ALSO
</pre></body></html>