Skip to content

Instantly share code, notes, and snippets.

@taichi
Created March 12, 2015 07:47
Show Gist options
  • Save taichi/6b80d76051bf04caa63e to your computer and use it in GitHub Desktop.
Save taichi/6b80d76051bf04caa63e to your computer and use it in GitHub Desktop.
墓.yamashi.ro で墓参りするpowershell スクリプト。tokenは自分で用意してクダサシ。powershell 4.0で動作する。
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