Created
March 12, 2015 07:47
-
-
Save taichi/6b80d76051bf04caa63e to your computer and use it in GitHub Desktop.
墓.yamashi.ro で墓参りするpowershell スクリプト。tokenは自分で用意してクダサシ。powershell 4.0で動作する。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trap [Exception] { | |
Write-EventLog -EntryType Error -LogName Application -Source Application -EventId 4649 -Message $error[0].exception | |
break | |
} | |
Invoke-RestMethod -Uri "http://haka.yamashi.ro/api/v1/incenses" -Method POST -Body "token=xxxxxx" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment