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

Error in client.website.add_new_people_profile #1

Closed
catacs opened this issue Mar 2, 2018 · 2 comments
Closed

Error in client.website.add_new_people_profile #1

catacs opened this issue Mar 2, 2018 · 2 comments

Comments

@catacs
Copy link

catacs commented Mar 2, 2018

I am trying to use the api method client.website.add_new_people_profile and i get this error:

    /gems/crisp-api-1.0.2/lib/crisp-api.rb:114:in `_do_request': invalid_data (RouteError)
        from /gems/crisp-api-1.0.2/lib/crisp-api.rb:65:in `post'
        from /gems/crisp-api-1.0.2/lib/resources/website.rb:189:in `add_new_people_profile'
        from crisp_test.rb:14:in `<main>'

it seems the method add_new_people_profile is not using the data parameter:

def add_new_people_profile(website_id, data)
    return @parent.post(self._url_website(website_id, "/people/profile"))
end

it should be:

def add_new_people_profile(website_id, data)
    return @parent.post(self._url_website(website_id, "/people/profile"), data: data)
end
@valeriansaliou
Copy link
Member

Thanks, issuing a fix now.

@valeriansaliou
Copy link
Member

All fixed, you can install v1.0.3 from Rubygems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants