Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added mp-type=checkin to micropub publish request as of idno/known#12…
- Loading branch information
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
b383f52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
did you already update ownyourcheckin.wirres.net with this?
My Endpoint doesn't get it and it's not listed in the fields listed in /fsq.
b383f52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, of course. however your server returns a 500 error:
b383f52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
corrected.
But still
$mp_type = $this->getInput('mp-type');
is empty... the other variables are ok
b383f52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's the $_REQUEST I get on my Endpoint :
bizarre
Even [photo] is missing
b383f52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
your know is still producing a 500 error.
and this is what my mp-endpoint receives:
array(9) {
["h"]=>
string(5) "entry"
["access_token"]=>
string(332) "xxx"
["mp-type"]=>
string(7) "checkin"
["category"]=>
array(3) {
[0]=>
string(6) "Office"
[1]=>
string(7) "checkin"
[2]=>
string(10) "foursquare"
}
["place_name"]=>
string(8) "EsPresto"
["place_url"]=>
string(106) "https://foursquare.com/venue/4b0a4a20f964a520052323e3?ref=YOFY2SHCUPCRRJUBFNI2D1SU3IKOFBHOGSX3ZN5CDEARGODM"
["location"]=>
string(34) "geo:52.515498799716,13.40467755187"
["published"]=>
string(25) "2016-02-17T10:33:17+01:00"
["syndication"]=>
string(63) "https://foursquare.com/forward/checkin/56c43e5d498e5addebff2410"
}
b383f52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could it be that the "TEST" button isn't sending the mp-type?
As I didn't wait for your script to run in background, I was triggering it from the website...
b383f52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, you’re right. the test-button does not send that yet. just as it doesn’t send video in ownyourgram.
b383f52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That explains the missing fields... and why endpoint didn't recognize it.
For my latest checkin https://nxd4n.nixekinder.be/2016/checked-into-parlement-europ%c3%a9en-european-parliament-1 I got the mp-type 👍
b383f52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5f1c598
b383f52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎱