256 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 100+ members
  • Has sold $125,000+ on Envato Market
  • Located in Belgium
+9 more

If you are like me and you have your Mac terminal always open than this is a very cool snippet that you can paste in your .bash_profile. Now you can type in envato to get your current Envato balance from within your terminal.

Here you can see a little video of the result: http://www.screenr.com/MuHs

Below is the snippet that you need to past into your .bash_profile file:
envato() {

        # Download API result to tmp file
        curl --silent $url > /tmp/envato.xml

        # Get tag value
    echo $ `get_data balance /tmp/envato.xml`

        # Delete temp file
        rm /tmp/envato.xml


# Get a specific tag value
get_data () {
    local tag=$1
    local xml=$2
    grep $tag $xml | \
        tr '\011' '\040' | \
        sed -e 's/^[ ]*//' \
            -e 's/^<.*>\([^<].*\)<.*>$/\1/'
750 posts
  • Has referred 50+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+6 more

Great! Also I just shocked by seeing your balance amount :P

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes