Namecheap-dot-net
Namecheap-dot-net copied to clipboard
Add parameters for NameCheapApi.Domains.GetList() method
Currently it is the default method. But it can have parameters.
Atleast, PageSize.
https://www.namecheap.com/support/api/methods/domains/get-list.aspx
@Awkward147 - we'd welcome a PR if you have the time to take a shot at it.
Oh Boy, Never done this. But I kinda need namecheap api for the app I am doing. And I dont wanna do what you have done :D I guess I will try to upgrade this method.
To be clear. In this case it is enough to just overload GetList method, adding parameters that namecheap api can take, and thats it?
Yeah, you got the right idea.
Fork the repo, create a new branch if you plan to make more contributions, overload GetList
.
Add a test for it too, please; if that's not something you feel comfortable doing, that's ok -- I'll add it (although that discomfort is actually exactly why you should give it a shot 😄 )
Thank you. If there are any other methods you feel could use overloads, please open an issue for each so we can add them over time.
Hi, it is me again. Just from work github account. Got distracted by some other project.
Anyway, I forked repo, overloaded the method and so on. I am trying to write the test. Never done it before, but now I understand that I should have been doing them from the start.
So yea, to do the tests, I need to have a namecheap sandbox account with api access, right? And fill in the details in the json file included in the project?