Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
The GetDomainSuggestions operation returns a list of suggested domain names given a string, which can either be a domain name or simply a word or phrase (without spaces).
Parameters: * DomainName (string): The basis for your domain suggestion search, a string with (or without) top-level domain specified. * SuggestionCount (int): The number of domain suggestions to be returned, maximum 50, minimum 1. * OnlyAvailable (bool): If true, availability check will be performed on suggestion results, and only available domains will be returned. If false, suggestions will be returned without checking whether the domain is actually available, and caller will have to call checkDomainAvailability for each suggestion to determine availability for registration.
- getDomainSuggestions :: Text -> Int -> Bool -> GetDomainSuggestions
- data GetDomainSuggestions
- gdsDomainName :: Lens' GetDomainSuggestions Text
- gdsSuggestionCount :: Lens' GetDomainSuggestions Int
- gdsOnlyAvailable :: Lens' GetDomainSuggestions Bool
- getDomainSuggestionsResponse :: Int -> GetDomainSuggestionsResponse
- data GetDomainSuggestionsResponse
- gdsrsSuggestionsList :: Lens' GetDomainSuggestionsResponse [DomainSuggestion]
- gdsrsResponseStatus :: Lens' GetDomainSuggestionsResponse Int
Creating a Request
Creates a value of GetDomainSuggestions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gdsDomainName
- Undocumented member.gdsSuggestionCount
- Undocumented member.gdsOnlyAvailable
- Undocumented member.
data GetDomainSuggestions Source #
See: getDomainSuggestions
smart constructor.
Request Lenses
gdsDomainName :: Lens' GetDomainSuggestions Text Source #
Undocumented member.
gdsSuggestionCount :: Lens' GetDomainSuggestions Int Source #
Undocumented member.
gdsOnlyAvailable :: Lens' GetDomainSuggestions Bool Source #
Undocumented member.
Destructuring the Response
getDomainSuggestionsResponse Source #
Creates a value of GetDomainSuggestionsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gdsrsSuggestionsList
- Undocumented member.gdsrsResponseStatus
- -- | The response status code.
data GetDomainSuggestionsResponse Source #
See: getDomainSuggestionsResponse
smart constructor.
Response Lenses
gdsrsSuggestionsList :: Lens' GetDomainSuggestionsResponse [DomainSuggestion] Source #
Undocumented member.
gdsrsResponseStatus :: Lens' GetDomainSuggestionsResponse Int Source #
- - | The response status code.