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
| package noman.counterhelper; | |
| import android.os.Bundle; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.view.View; | |
| import android.widget.Button; | |
| import android.widget.TextView; | |
| /** | |
| * Created by Noman on 11/8/2016. | |
| */ |
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
| var url = // Webhook URL | |
| var text = // Text to post | |
| $.ajax({ | |
| data: 'payload=' + JSON.stringify({ | |
| "text": text | |
| }), | |
| dataType: 'json', | |
| processData: false, | |
| type: 'POST', | |
| url: url |