Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update LeBonCoinBridge to use the site's API #795

Merged
merged 4 commits into from
Aug 28, 2018

Conversation

teromene
Copy link
Member

Should definitively fix the problem of bot detection #789
The city input has changed, now taking a zipcode.
Can you check whether it works now @JackNUMBER ?

Copy link
Contributor

@JackNUMBER JackNUMBER left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine. Thank you!
City field doesn't accept list anymore, I suggested a way.

if($this->getInput('cities') != '') {
$requestJson->filters->location['city_zipcodes'] = array();
$requestJson->filters->location['city_zipcodes'][] = array(
'zipcode' => $this->getInput('cities')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Multiple cities are not possible anymore, you can do this:

if($this->getInput('cities') != '') {

	$requestJson->filters->location['city_zipcodes'] = array();

	foreach (explode(',', $this->getInput('cities')) as $zipcode) {
		$requestJson->filters->location['city_zipcodes'][] = array(
			'zipcode' => $zipcode
		);
	}
	
}

@teromene teromene merged commit b0e33e4 into RSS-Bridge:master Aug 28, 2018
infominer33 pushed a commit to web-work-tools/rss-bridge that referenced this pull request Apr 17, 2020
* Update LeBonCoinBridge to use the site's API
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants