Last active
May 26, 2016 21:45
-
-
Save JordiCorbilla/6992472ad10d97c29f19 to your computer and use it in GitHub Desktop.
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
/** | |
* @Author: Jordi Corbilla | |
* (c) Copyright by Jordi Corbilla. | |
**/ | |
procedure TForm1.Button1Click(Sender: TObject); | |
var | |
response : string; | |
JSONToSend: TStringStream; | |
begin | |
JSONToSend := TStringStream.Create('{}'); | |
IdHTTP1.Request.Connection := 'Keep-Alive'; | |
IdSSLIOHandlerSocketOpenSSL1.SSLOptions.Method := sslvSSLv23; | |
IdHTTP1.Request.CustomHeaders.Clear; | |
IdHTTP1.Request.CustomHeaders.Values['X-Parse-Application-Id'] := 'yourAppId'; | |
IdHTTP1.Request.CustomHeaders.Values['X-Parse-REST-API-Key'] := 'yourRESTAPIKey'; | |
IdHTTP1.Request.ContentType := 'application/json'; | |
response := IdHttp1.Post('https://api.parse.com/1/events/AppOpened', JSONToSend); | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment