Not logged in : Login

About: EntryPoint - user_checkAvailability     Goto   Sponge   Distinct   Permalink

An Entity of Type : schema:EntryPoint, within Data Space : ods.openlinksw.com associated with source document(s)

Before creating an account via user.register() this method can be used to check the availability of the user name and the email address.Although both parameters are marked as optional reliable results are only obtained if both parameters are given. name The user account name to check. email The corresponding email address. An error code stating the success of the command execution as detailed in ODS Error Result Codes. If the account name and email address are available 1 is returned. Otherwise an error code and a human readable message indicating the problem are returned and the HTTP status code is set to 400. Error Codes invalid_username invalid_email username_in_use email_in_use Example: $ curl -i http://ods.openlinksw.com/ods/api/user.checkAvailability?name=demo2&email=demo2@hello.com HTTP/1.1 200 OK Server: Virtuoso/06.01.3127 (Linux) x86_64-unknown-linux-gnu Connection: Keep-Alive Date: Tue, 17 Apr 2012 15:44:46 GMT Accept-Ranges: bytes Content-Type: text/xml; charset="UTF-8" Content-Length: 57 1Success AuthenticationThis function does not require any authentication.

AttributesValues
type
schema:url
schema:httpMethod
  • GET
schema:contentType
  • text/xml
http://www.openlin...es#isWebServiceOf
http://www.openlin...vices#endPointURL
schema:shortDescription
  • Check if a certain user account name is available.

http://www.openlin...ices#hasParameter
schema:name
  • EntryPoint - user_checkAvailability
schema:description
  • Before creating an account via user.register() this method can be used to check the availability of the user name and the email address.

    Although both parameters are marked as optional reliable results are only obtained if both parameters are given.

  • name

    The user account name to check.

  • email

    The corresponding email address.

An error code stating the success of the command execution as detailed in ODS Error Result Codes. If the account name and email address are available 1 is returned. Otherwise an error code and a human readable message indicating the problem are returned and the HTTP status code is set to 400.

Error Codes

invalid_username

invalid_email

username_in_use

email_in_use

Example:
 $ curl -i http://ods.openlinksw.com/ods/api/user.checkAvailability?name=demo2&email=demo2@hello.com

 HTTP/1.1 200 OK
 Server: Virtuoso/06.01.3127 (Linux) x86_64-unknown-linux-gnu
 Connection: Keep-Alive
 Date: Tue, 17 Apr 2012 15:44:46 GMT
 Accept-Ranges: bytes
 Content-Type: text/xml; charset="UTF-8"
 Content-Length: 57

 <result><code>1</code><message>Success</message></result>
 

Authentication

This function does not require any authentication.

is schema:target of
Faceted Search & Find service v1.17_git132 as of May 12 2023


Alternative Linked Data Documents: iSPARQL | ODE     Content Formats:   [cxml] [csv]     RDF   [text] [turtle] [ld+json] [rdf+json] [rdf+xml]     ODATA   [atom+xml] [odata+json]     Microdata   [microdata+json] [html]    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 08.03.3332 as of Sep 11 2024, on Linux (x86_64-generic-linux-glibc25), Single-Server Edition (15 GB total memory, 2 GB memory in use)
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2024 OpenLink Software