Jump to content
[MUST READ] Forum Rules ×

Callback URL Documentation


Ryan Matheus

Recommended Posts

4 hours ago, Ryan Matheus said:

but as the POST arrives, I don't know what the index of the variable 

Note that you can always do 

 

print_r($_POST);

 

to see what the data contains. Store the result in the DB so you can study it. Or, just use the documentation to get it right the first time :)

Link to comment
Share on other sites

6 hours ago, TinkerMan said:

Note that you can always do 

 

print_r($_POST);

 

to see what the data contains. Store the result in the DB so you can study it. Or, just use the documentation to get it right the first time :)

I know this is possible, but there are certain things I can't test without spending a long time, like when the account is deleted

Link to comment
Share on other sites

4 hours ago, BastelPichi said:

Well then only MOFH callback agent sees the result.. (lol)

You can use a for clause to log all the data... Or just use some kind of request catcher to log all the data.

A simple way to save all the data would be like this

<?php

# Codigo de exemplo para salvar o post
file_put_contents("log_".time().".txt", json_encode($_POST, JSON_PRETTY_PRINT));
Link to comment
Share on other sites

  • 4 weeks later...
2 hours ago, BastelPichi said:

I think this is already resolved. Robert S. integrated callback docs to the MOFH API docs.

Yes, the API docs maintained by Robert are the best solution (if they don't have something, a simple PR will allow them to be added there).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...