crisp-im / go-crisp-api

:hamster: Crisp API Golang Wrapper
https://docs.crisp.chat/guides/rest-api/
Other
37 stars 9 forks source link

documentation errors #3

Closed chrislewispac closed 6 years ago

chrislewispac commented 7 years ago
server/server.go:182: client.UserAccountCreate undefined (type *crisp.Client has no field or method UserAccountCreate)
valeriansaliou commented 7 years ago

Hi!

Thanks for your reports! If you refer to the docs - which I just enhanced to make them clear, you'll see that methods are namespaced and accessed via your client instance, and the structures are accessed directly from crisp.

Thus, client.UserAccountCreate should be crisp.UserAccountCreate.

chrislewispac commented 7 years ago

thanks. just switching over from intercom.io and trying to figure out your api. Also would be helpful is there were a way to create a user via the api (with user sign up or email list sign up)

valeriansaliou commented 7 years ago

Cool! Let me know if we can improve on anything on this lib. You can manage users via the People namespace, there should be a CreateProfile method on People (I don't have an eye on the docs ATM).