You are here

function shurly_get_uid in ShURLy 6

Same name and namespace in other branches
  1. 8 shurly_service/shurly_api_keys.inc \shurly_get_uid()
  2. 7 shurly_service/shurly_api_keys.inc \shurly_get_uid()
3 calls to shurly_get_uid()
shurly_generate_new_api_key in shurly_service/shurly_api_keys.inc
Generate a new api key for this user and put it into the database
shurly_service_expand in shurly_service/shurly_service.inc
Callback for shurly/api/shorten
shurly_service_shorten in shurly_service/shurly_service.inc
Callback for shurly/api/shorten

File

shurly_service/shurly_api_keys.inc, line 20

Code

function shurly_get_uid($key) {
  return db_result(db_query("SELECT uid FROM {shurly_keys} WHERE apikey = '%s'", $key));
}