100+ results for 'apikey'

Not the results you expected?

weather_underground.py (https://gitlab.com/cburki/python_wunderground) Python · 361 lines

38

39 URL = 'http://api.wunderground.com/api/{apikey}/{features}/q/{location}.json'

40 QUERY_TIMEOUT = 30

49

50 def __init__(self, apiKey, cache):

51 """

53

54 :param apiKey: The weather underground API key

55 :type apiKey: string

59

60 self._apiKey = apiKey

61 self._cache = cache

326

327 url = WeatherUnderground.URL.format(apikey=self._apiKey, features=features, location=location)

328

Settings.h (https://github.com/openscad/openscad.git) C Header · 283 lines

180 static SettingsEntryString octoPrintUrl;

181 static SettingsEntryString octoPrintApiKey;

182 static SettingsEntryEnum octoPrintFileFormat;

fingerprinting.py (https://github.com/lalinsky/picard.git) Python · 144 lines

40 config.TextOption("setting", "acoustid_fpcalc", ""),

41 config.TextOption("setting", "acoustid_apikey", ""),

42 ]

53 self.ui.acoustid_fpcalc_download.clicked.connect(self.acoustid_fpcalc_download)

54 self.ui.acoustid_apikey_get.clicked.connect(self.acoustid_apikey_get)

55

61 self.ui.acoustid_fpcalc.setText(config.setting["acoustid_fpcalc"])

62 self.ui.acoustid_apikey.setText(config.setting["acoustid_apikey"])

63 self.ui.ignore_existing_acoustid_fingerprints.setChecked(config.setting["ignore_existing_acoustid_fingerprints"])

71 config.setting["acoustid_fpcalc"] = unicode(self.ui.acoustid_fpcalc.text())

72 config.setting["acoustid_apikey"] = unicode(self.ui.acoustid_apikey.text())

73 config.setting["ignore_existing_acoustid_fingerprints"] = self.ui.ignore_existing_acoustid_fingerprints.isChecked()

94

95 def acoustid_apikey_get(self):

96 webbrowser2.goto('acoustid_apikey')

impermium.php (https://github.com/PopSugar/Impermium-PHP.git) PHP · 449 lines

67 */

68 private $_apiKey;

69

111 public function __construct($api_key, $api_host=self::API_HOST, $api_version=self::API_VERSION) {

112 $this->_apiKey = $api_key;

113 $this->_apiHost = $api_host;

126 private function _buildUrl($type, $action, $event_id) {

127 $url = sprintf('http://%s/%s/%s/%s/%s/%s', $this->_apiHost, $type, $action, $this->_apiVersion, $this->_apiKey, $event_id);

128 return $url;

182 */

183 public function getApiKey() {

184 return $this->_apiKey;

193 */

194 public function setApiKey($api_key) {

195 $this->_apiKey = $api_key;

ConfigurationListForm.cs (https://gitlab.com/martijnvds/zaaksysteemuploadservice) C# · 185 lines

139 cdi.Name = cf.configurationNameEntry.Text;

140 cdi.APIKey = cf.apiKeyEntry.Text;

141 cdi.WatchPath = cf.selectedFolder.Text;

DetailInvoker.java (https://github.com/lolay/citygrid-java-old.git) Java · 213 lines

42 private String publisher = null;

43 private String apiKey = null;

44 private Boolean customerOnly = null;

79 }

80 public String getApiKey() {

81 return apiKey;

82 }

83 public void setApiKey(String apiKey) {

84 this.apiKey = apiKey;

139 .phone(prototype.getPhone()).publisher(prototype.getPublisher())

140 .apiKey(prototype.getApiKey()).customerOnly(prototype.getCustomerOnly())

141 .allResults(prototype.getAllResults()).reviewCount(prototype.getReviewCount())

178

179 public Builder apiKey(String apiKey) {

180 instance.setApiKey(apiKey);

elementindex.html (https://github.com/eXeDK/VirusTotal-API-PHP-class.git) HTML · 243 lines

81 <dt class="field">

82 <span class="method-title">getApiKey</span>

83 </dt>

84 <dd class="index-item-body">

85 <div class="index-item-details"><a href="default/VirusTotal.html#methodgetApiKey">VirusTotal::getApiKey()</a> in VirusTotal.php</div>

86 <div class="index-item-description">Getter for the API-key</div>

159 <dt class="field">

160 <span class="method-title">setApiKey</span>

161 </dt>

162 <dd class="index-item-body">

163 <div class="index-item-details"><a href="default/VirusTotal.html#methodsetApiKey">VirusTotal::setApiKey()</a> in VirusTotal.php</div>

164 <div class="index-item-description">Setter for the API-key</div>

Account.php (https://gitlab.com/Blueprint-Marketing/dyn-php) PHP · 796 lines

72 */

73 protected $apiKey;

74

155 ->setCreated($json->created)

156 ->setApiKey($json->apikey)

157 ->setTimeZone($json->timezone)

212 'trackunsubscribes' => $this->getTrackUnsubscribes() ? '1' : '0',

213 'generatenewapikey' => '0', // TODO

214 );

495 */

496 public function setApiKey($apiKey)

497 {

498 $this->apiKey = $apiKey;

499

test_example_iauthfunctions.py (https://gitlab.com/iislod/ckan) Python · 261 lines

50 tests.call_action_api(app, 'group_create', name='test-group',

51 apikey=sysadmin['apikey'])

52

57 tests.call_action_api(app, 'group_create', name='test-group',

58 apikey=user['apikey'], status=403)

59

70 tests.call_action_api(app, 'group_create', name='test-group',

71 apikey=sysadmin['apikey'])

72

77 tests.call_action_api(app, 'group_create', name='test-group',

78 apikey=user['apikey'])

79

135 curators_group = tests.call_action_api(self.app, 'group_create',

136 apikey=sysadmin['apikey'],

137 name='curators',

AlbumApi.php (https://github.com/matto1990/PHP-Last.fm-API.git) PHP · 270 lines

47 'method' => 'album.addtags',

48 'api_key' => $this->getAuth()->apiKey,

49 'sk' => $this->getAuth()->sessionKey

82 'method' => 'album.getinfo',

83 'api_key' => $this->getAuth()->apiKey

84 );

143 'method' => 'album.gettags',

144 'api_key' => $this->getAuth()->apiKey,

145 'sk' => $this->getAuth()->sessionKey

192 'method' => 'album.removetag',

193 'api_key' => $this->getAuth()->apiKey,

194 'sk' => $this->getAuth()->sessionKey

226 'method' => 'album.search',

227 'api_key' => $this->getAuth()->apiKey

228 );

Geo.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 162 lines

30 * @param distance Find events within a specified distance

31 * @param apiKey A Last.fm API key.

32 * @return a list containing all events

33 */

34 public static Collection<Event> getAllEvents(String location, String distance, String apiKey) {

35 Collection<Event> events = null;

37 do {

38 PaginatedResult<Event> result = getEvents(location, distance, page, apiKey);

39 total = result.getTotalPages();

60 * @param distance Find events within a specified distance

61 * @param apiKey A Last.fm API key.

62 * @return a {@link PaginatedResult} containing a list of events

63 */

64 public static PaginatedResult<Event> getEvents(String location, String distance, String apiKey) {

65 return getEvents(location, distance, 1, apiKey);

Library.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 257 lines

26 * @param user The user whose library you want to fetch.

27 * @param apiKey A Last.fm API key.

28 * @return a {@link PaginatedResult} of the artists

29 */

30 public static PaginatedResult<Artist> getArtists(String user, String apiKey) {

31 return getArtists(user, 1, 0, apiKey);

38 * @param page The page number you wish to scan to.

39 * @param apiKey A Last.fm API key.

40 * @return a {@link PaginatedResult} of the artists

41 */

42 public static PaginatedResult<Artist> getArtists(String user, int page, String apiKey) {

43 return getArtists(user, page, 0, apiKey);

51 * @param limit Limit the amount of artists returned (maximum/default is 50).

52 * @param apiKey A Last.fm API key.

53 * @return a {@link PaginatedResult} of the artists

GetChildInfoTest.php (https://gitlab.com/i-have-a-green/digitemis-v3) PHP · 141 lines

135 /**

136 * Test attribute "apiKeys"

137 */

138 public function testPropertyApiKeys()

139 {

base.php (https://gitlab.com/crsr/google-api-php-client) PHP · 141 lines

45

46 function missingApiKeyWarning()

47 {

121

122 function setClientCredentialsFile($apiKey)

123 {

124 $file = __DIR__ . '/../../tests/.apiKey';

125 file_put_contents($file, $apiKey);

128

129 function getApiKey()

130 {

136

137 function setApiKey($apiKey)

138 {

com.metinkale.prayer.yml (https://gitlab.com/luelista/fdroiddata) YAML · 313 lines

303 - bash fdroidPrep.sh

304 - sed -i -e '/io.fabric/d; /com.crashlytics/d; /com.google.android.gms/d; /GoogleApiKey/d'

305 features/{base,compass}/build.gradle

DesignMovieService.cs (https://github.com/blackjid/CouchPotatoWp7.git) C# · 77 lines

70 couch = new CouchApi();

71 couch.ApiKey = "7c9fad341b764a5f8c4781c76f3cbc24";

72 couch.Host = "nas.blackjid.info";

middleware_ip_whitelist_test.go (https://gitlab.com/jjae2124/tyk) Go · 382 lines

163 thisSpec := createDefinitionFromString(apiTestDef)

164 redisStore := RedisStorageManager{KeyPrefix: "apikey-"}

165 healthStore := &RedisStorageManager{KeyPrefix: "apihealth."}

183 spec := MakeIPSampleAPI(ipMiddlewareTestDefinitionEnabledFail)

184 redisStore := RedisStorageManager{KeyPrefix: "apikey-"}

185 healthStore := &RedisStorageManager{KeyPrefix: "apihealth."}

212 spec := MakeIPSampleAPI(ipMiddlewareTestDefinitionEnabledPass)

213 redisStore := RedisStorageManager{KeyPrefix: "apikey-"}

214 healthStore := &RedisStorageManager{KeyPrefix: "apihealth."}

241 spec := MakeIPSampleAPI(ipMiddlewareTestDefinitionEnabledPass)

242 redisStore := RedisStorageManager{KeyPrefix: "apikey-"}

243 healthStore := &RedisStorageManager{KeyPrefix: "apihealth."}

270 spec := MakeIPSampleAPI(ipMiddlewareTestDefinitionEnabledPass)

271 redisStore := RedisStorageManager{KeyPrefix: "apikey-"}

272 healthStore := &RedisStorageManager{KeyPrefix: "apihealth."}

TelegramAPI.java (https://gitlab.com/plotnikau/telebotapi) Java · 251 lines

57 public TelegramAPI(BotProperties botProperties) {

58 apiBaseUrl = "https://api.telegram.org/bot" + botProperties.getApiKey() + "/";

59 }

0001_initial.py (https://gitlab.com/asmjahid/opps) Python · 62 lines

13 def forwards(self, orm):

14 # Adding model 'ApiKey'

15 db.create_table(u'api_apikey', (

20 ))

21 db.send_create_signal(u'api', ['ApiKey'])

22

24 def backwards(self, orm):

25 # Deleting model 'ApiKey'

26 db.delete_table(u'api_apikey')

29 models = {

30 u'api.apikey': {

31 'Meta': {'object_name': 'ApiKey'},

event.php (https://gitlab.com/matt-oakes/Online-Lastfm-Player) PHP · 294 lines

52 'method' => 'event.attend',

53 'api_key' => $this->auth->apiKey,

54 'sk' => $this->auth->sessionKey

89 'method' => 'event.getattendees',

90 'api_key' => $this->auth->apiKey

91 );

130 'method' => 'event.getinfo',

131 'api_key' => $this->auth->apiKey

132 );

186 'method' => 'event.getshouts',

187 'api_key' => $this->auth->apiKey

188 );

226 'method' => 'event.share',

227 'api_key' => $this->auth->apiKey,

228 'sk' => $this->auth->sessionKey

RecommendationsAI.php (https://gitlab.com/Japang-Jawara/jawara-penilaian) PHP · 449 lines

50 public $projects_locations_catalogs_eventStores_placements;

51 public $projects_locations_catalogs_eventStores_predictionApiKeyRegistrations;

52 public $projects_locations_catalogs_eventStores_userEvents;

260 );

261 $this->projects_locations_catalogs_eventStores_predictionApiKeyRegistrations = new RecommendationsAI\Resource\ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrations(

262 $this,

263 $this->serviceName,

264 'predictionApiKeyRegistrations',

265 [

267 'create' => [

268 'path' => 'v1beta1/{+parent}/predictionApiKeyRegistrations',

269 'httpMethod' => 'POST',

287 ],'list' => [

288 'path' => 'v1beta1/{+parent}/predictionApiKeyRegistrations',

289 'httpMethod' => 'GET',

ContactsFacade.php (https://gitlab.com/kubiq/eveblues) PHP · 153 lines

6 use EveBlues\Model\Alliance\AlliancesRepository;

7 use EveBlues\Model\ApiKey\ApiKey;

8 use EveBlues\Model\ApiKey\ApiKeysRepository;

26 private $labelsRepository;

27 /** @var ApiKeysRepository */

28 private $apiKeysRepository;

48 public function __construct(

49 ApiKeysRepository $apiKeysRepository,

50 AlliancesRepository $alliancesRepository,

63 $this->labelsRepository = $labelsRepository;

64 $this->apiKeysRepository = $apiKeysRepository;

65 $this->charactersRepository = $charactersRepository;

75

76 public function getContacts(User $owner, ApiKey $apiKey, int $characterId) :Character {

77

QueueingServiceExamples.fs (https://gitlab.com/rekby-archive/onlyoffice-CommunityServer) F# · 121 lines

12

13 let identity = new CloudIdentity (Username = "MyUser", APIKey = "API_KEY_HERE")

14 let region : string = null

authentication.py (https://github.com/johncosta/django-jcosta-tastypie.git) Python · 166 lines

5 from django.test import TestCase

6 from tastypie.authentication import Authentication, BasicAuthentication, ApiKeyAuthentication, DigestAuthentication

7 from tastypie.http import HttpUnauthorized

8 from tastypie.models import ApiKey, create_api_key

9

76

77 class ApiKeyAuthenticationTestCase(TestCase):

78 fixtures = ['note_testdata.json']

80 def setUp(self):

81 super(ApiKeyAuthenticationTestCase, self).setUp()

82 ApiKey.objects.all().delete()

84 def test_is_authenticated(self):

85 auth = ApiKeyAuthentication()

86 request = HttpRequest()

FlickrRestStore.js (https://github.com/eladmeidar/EngineY.git) JavaScript · 476 lines

34 userid: "44153025@N00",

35 apikey: "8c6803164dbc395fb7131c9d54843627"

36 },

70 userid: "44153025@N00",

71 apikey: "8c6803164dbc395fb7131c9d54843627"

72 },

148 userid: "44153025@N00",

149 apikey: "8c6803164dbc395fb7131c9d54843627"

150 },

178 userid: "44153025@N00",

179 apikey: "8c6803164dbc395fb7131c9d54843627"

180 },

209 userid: "44153025@N00",

210 apikey: "8c6803164dbc395fb7131c9d54843627"

211 },

TDOperatorTest.java (https://gitlab.com/github-cloud-corp/digdag) Java · 203 lines

54 .set("database", "")

55 .set("apikey", "foobar");

56

66 .set("database", " \t\n")

67 .set("apikey", "foobar");

68

73 @Test

74 public void verifyEmptyApiKeyParameterIsRejected()

75 throws Exception

78 .set("database", "foobar")

79 .set("apikey", "");

80

85 @Test

86 public void verifyWhitespaceApiKeyParameterIsRejected()

87 throws Exception

Method.cs (https://gitlab.com/CORP-RESELLER/aws-sdk-net) C# · 201 lines

34 {

35 private bool? _apiKeyRequired;

36 private string _authorizationType;

44 /// <summary>

45 /// Gets and sets the property ApiKeyRequired.

46 /// <para>

47 /// Specifies whether the method requires a valid <a>ApiKey</a>.

48 /// </para>

49 /// </summary>

50 public bool ApiKeyRequired

51 {

52 get { return this._apiKeyRequired.GetValueOrDefault(); }

53 set { this._apiKeyRequired = value; }

settings.py (https://github.com/runderwood/openstates.git) Python · 97 lines

60 'django.middleware.cache.FetchFromCacheMiddleware',

61 'locksmith.auth.middleware.APIKeyMiddleware',

62 'django.contrib.redirects.middleware.RedirectFallbackMiddleware',

GetChildInfoApiKeysV3.php (https://gitlab.com/i-have-a-green/digitemis-v3) PHP · 337 lines

2 /**

3 * GetChildInfoApiKeysV3

4 *

35 /**

36 * GetChildInfoApiKeysV3 Class Doc Comment

37 *

42 */

43 class GetChildInfoApiKeysV3 implements ModelInterface, ArrayAccess

44 {

51 */

52 protected static $swaggerModelName = 'getChildInfo_apiKeys_v3';

53

GetChildInfoApiKeysV2.php (https://gitlab.com/i-have-a-green/digitemis-v3) PHP · 337 lines

2 /**

3 * GetChildInfoApiKeysV2

4 *

35 /**

36 * GetChildInfoApiKeysV2 Class Doc Comment

37 *

42 */

43 class GetChildInfoApiKeysV2 implements ModelInterface, ArrayAccess

44 {

51 */

52 protected static $swaggerModelName = 'getChildInfo_apiKeys_v2';

53

authorized_with_capture.yml (https://github.com/collectiveidea/tax_cloud.git) YAML · 63 lines

5 uri: https://api.taxcloud.net:443/1.0/TaxCloud.asmx

6 body: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://taxcloud.net" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="http://taxcloud.net"><env:Body><ins0:Lookup><ins0:customerID>1644</ins0:customerID><ins0:cartID>8291</ins0:cartID><ins0:cartItems><ins0:CartItem><wsdl:Index>0</wsdl:Index><wsdl:ItemID>SKU-TEST</wsdl:ItemID><wsdl:TIC>00000</wsdl:TIC><wsdl:Price>50.0</wsdl:Price><wsdl:Qty>1</wsdl:Qty></ins0:CartItem><ins0:CartItem><wsdl:Index>1</wsdl:Index><wsdl:ItemID>SKU-TEST1</wsdl:ItemID><wsdl:TIC>00000</wsdl:TIC><wsdl:Price>50.0</wsdl:Price><wsdl:Qty>1</wsdl:Qty></ins0:CartItem></ins0:cartItems><ins0:origin><ins0:Address1>888 6th Ave</ins0:Address1><ins0:Address2 xsi:nil="true"/><ins0:City>New York</ins0:City><ins0:State>NY</ins0:State><ins0:Zip5>10001</ins0:Zip5><ins0:Zip4 xsi:nil="true"/></ins0:origin><ins0:destination><ins0:Address1>888 6th Ave</ins0:Address1><ins0:Address2 xsi:nil="true"/><ins0:City>New York</ins0:City><ins0:State>NY</ins0:State><ins0:Zip5>10001</ins0:Zip5><ins0:Zip4 xsi:nil="true"/></ins0:destination><ins0:apiLoginID>api-login-id</ins0:apiLoginID><ins0:apiKey>api-key</ins0:apiKey></ins0:Lookup></env:Body></env:Envelope>

7 headers:

36 uri: https://api.taxcloud.net:443/1.0/TaxCloud.asmx

37 body: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://taxcloud.net" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="http://taxcloud.net"><env:Body><ins0:AuthorizedWithCapture><ins0:customerID>1644</ins0:customerID><ins0:cartID>8291</ins0:cartID><ins0:orderID>4804</ins0:orderID><ins0:dateAuthorized>2011-09-17</ins0:dateAuthorized><ins0:dateCaptured>2011-09-17</ins0:dateCaptured><ins0:apiLoginID>api-login-id</ins0:apiLoginID><ins0:apiKey>api-key</ins0:apiKey></ins0:AuthorizedWithCapture></env:Body></env:Envelope>

38 headers:

FKFlickrGroupsBrowse.h (https://gitlab.com/vicrius/flickrVisualizer) C Header · 58 lines

19 FKFlickrGroupsBrowseError_UserNotLoggedInOrInsufficientPermissions = 99, /* The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions. */

20 FKFlickrGroupsBrowseError_InvalidAPIKey = 100, /* The API key passed was not valid or has expired. */

21 FKFlickrGroupsBrowseError_ServiceCurrentlyUnavailable = 105, /* The requested service is temporarily unavailable. */

FKFlickrStatsGetPhotosetStats.m (https://gitlab.com/vicrius/flickrVisualizer) Objective C · 108 lines

85 return @"User not logged in / Insufficient permissions";

86 case FKFlickrStatsGetPhotosetStatsError_InvalidAPIKey:

87 return @"Invalid API Key";

FKFlickrStatsGetCollectionStats.h (https://gitlab.com/vicrius/flickrVisualizer) C Header · 55 lines

22 FKFlickrStatsGetCollectionStatsError_UserNotLoggedInOrInsufficientPermissions = 99, /* The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions. */

23 FKFlickrStatsGetCollectionStatsError_InvalidAPIKey = 100, /* The API key passed was not valid or has expired. */

24 FKFlickrStatsGetCollectionStatsError_ServiceCurrentlyUnavailable = 105, /* The requested service is temporarily unavailable. */

FKFlickrPhotosCommentsEditComment.m (https://gitlab.com/vicrius/flickrVisualizer) Objective C · 106 lines

83 return @"User not logged in / Insufficient permissions";

84 case FKFlickrPhotosCommentsEditCommentError_InvalidAPIKey:

85 return @"Invalid API Key";

FKFlickrPhotosCommentsAddComment.m (https://gitlab.com/vicrius/flickrVisualizer) Objective C · 106 lines

83 return @"User not logged in / Insufficient permissions";

84 case FKFlickrPhotosCommentsAddCommentError_InvalidAPIKey:

85 return @"Invalid API Key";

app_settings.html (https://gitlab.com/lileeyao/airnotifier.git) HTML · 269 lines

173 <div class="control-group">

174 <label class="control-label" for="form-element-gcmapikey">{{ _('API key') }}</label>

175 <div class="controls">

176 <input type="text" class="input-xlarge" id="form-element-gcmapikey" name="gcmapikey" value="{{app.get('gcmapikey', '')}}">

177 </div>

TransportCreateApiKeyAction.java (https://github.com/elasticsearch/elasticsearch.git) Java · 72 lines

17 import org.elasticsearch.xpack.core.security.SecurityContext;

18 import org.elasticsearch.xpack.core.security.action.apikey.CreateApiKeyAction;

19 import org.elasticsearch.xpack.core.security.action.apikey.CreateApiKeyRequest;

20 import org.elasticsearch.xpack.core.security.action.apikey.CreateApiKeyResponse;

21 import org.elasticsearch.xpack.core.security.authc.Authentication;

29 */

30 public final class TransportCreateApiKeyAction extends HandledTransportAction<CreateApiKeyRequest, CreateApiKeyResponse> {

31

38 ActionFilters actionFilters,

39 ApiKeyService apiKeyService,

40 SecurityContext context,

49 @Override

50 protected void doExecute(Task task, CreateApiKeyRequest request, ActionListener<CreateApiKeyResponse> listener) {

51 final Authentication authentication = securityContext.getAuthentication();

index.html (https://gitlab.com/betimbryma/SEPM-Ticketline) HTML · 87 lines

55

56 $('#input_apiKey').change(function() {

57 var key = $('#input_apiKey')[0].value;

60 log("added key " + key);

61 window.authorizations.add("key", new ApiKeyAuthorization("api_key", key, "query"));

62 }

MusixMatchPlugin.cpp (https://github.com/lfranchi/tomahawk.git) C++ · 158 lines

34 : InfoPlugin()

35 , m_apiKey( "61be4ea5aea7dd942d52b2f1311dd9fe" )

36 {

66

67 TomahawkUtils::urlAddQueryItem( url, "apikey", m_apiKey );

68 TomahawkUtils::urlAddQueryItem( url, "q_artist", artist );

124 QString track_id = domNodeList.at(0).toElement().text();

125 QString requestString( "http://api.musixmatch.com/ws/1.1/track.lyrics.get?track_id=%1&format=xml&apikey=%2" );

126 QUrl url( requestString );

127

128 TomahawkUtils::urlAddQueryItem( url, "apikey", m_apiKey );

129 TomahawkUtils::urlAddQueryItem( url, "track_id", track_id );

APIKey_Id.cs (https://github.com/Vanaheimr/Hermod.git) C# · 387 lines

38 /// <param name="APIKey">An API key identifications.</param>

39 public static Boolean IsNullOrEmpty(this APIKey_Id? APIKey)

40 => !APIKey.HasValue || APIKey.Value.IsNullOrEmpty;

45 /// <param name="APIKey">An API key identifications.</param>

46 public static Boolean IsNotNullOrEmpty(this APIKey_Id? APIKey)

47 => APIKey.HasValue && APIKey.Value.IsNotNullOrEmpty;

227 public static Boolean operator != (APIKey_Id APIKeyIdId1,

228 APIKey_Id APIKeyIdId2)

229

339

340 => Object is APIKey_Id apiKeyId &&

341 Equals(apiKeyId);

351 /// <returns>True if both match; False otherwise.</returns>

352 public Boolean Equals(APIKey_Id APIKeyId)

353

dtrust.php (https://gitlab.com/nahoor/public) PHP · 127 lines

16 /* Replace the $apiKey with the API Key from your Block.io Wallet. A different API key exists for Dogecoin, Dogecoin Testnet, Litecoin, Litecoin Testnet, etc. */

17 $apiKey = 'DogecoinTestnetAPIKey';

18 $pin = 'SecretPin';

20

21 $block_io = new BlockIo($apiKey, $pin, $version);

22

Connection.cs (https://github.com/tjom/MIRPCADB.git) C# · 191 lines

48 p["t"] = timestamp;

49 p["api_key"] = authenticatedSession.APIKey;

50 p["sk"] = authenticatedSession.SessionKey;

TestOfFlickrAPIAccessor.php (https://github.com/SimonCoopey/ThinkUp.git) PHP · 81 lines

45

46 public function testGetFlickrPhotoSourceNoFlickrAPIKey() {

47 $logger = Logger::getInstance();

ConfigApiController.php (git://github.com/vanillaforums/Garden.git) PHP · 217 lines

131

132 // ApiKey => ConfigKey

133 $propertyMapping = [];

FBSession.h (https://github.com/ilTofa/Coniglio.git) C Header · 203 lines

35 NSMutableArray* _delegates;

36 NSString* _apiKey;

37 NSString* _apiSecret;

66 */

67 @property(nonatomic,readonly) NSString* apiKey;

68

global_passportsetting.aspx.cs (https://github.com/Natsuwind/DeepInSummer.git) C# · 150 lines

28 {

29 string apikey = DNTRequest.GetString("apikey");

30 if (apikey != "")

34 {

35 if (ai.APIKey == apikey)

36 {

61 }

62 apikeyhidd.Value = apikey;

63 }

96 }

97 if (apikeyhidd.Value == "") //����

98 {

126 {

127 if (ai.APIKey == apikeyhidd.Value)

128 {

Task.php (https://github.com/ksecor/civicrm.git) PHP · 281 lines

149

150 if ( $config->mapProvider && $config->mapAPIKey ) {

151 self::$_tasks[12] = array( 'title' => ts( 'Map Contacts'),

messages.de.yml (https://gitlab.com/mktcode/widget-management-system) YAML · 70 lines

64 install.locale: Sprache

65 install.google.maps.apikey: Google Maps Api-Key

66 install.facebook.app_id: Facebook App ID

TDUser.java (https://github.com/rodericj/TopDish.git) Java · 608 lines

113 @Persistent

114 private String ApiKey = UUID.randomUUID().toString();

115

507 *

508 * @param apiKey

509 * - the API key to set

511 */

512 public TDUser setApiKey(String apiKey) {

513 this.ApiKey = apiKey;

521 */

522 public String getApiKey() {

523

524 if (null == this.ApiKey)

525 this.ApiKey = UUID.randomUUID().toString();

GroupDiscussInterface.java (https://gitlab.com/sugesk/flickr4java) Java · 238 lines

28

29 private final String apiKey;

30

35 public GroupDiscussInterface(String apiKey, String sharedSecret, Transport transportAPI) {

36 this.apiKey = apiKey;

37 this.sharedSecret = sharedSecret;

67

68 Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret);

69 if (response.isError()) {

108

109 Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret);

110 if (response.isError()) {

142

143 Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret);

144 if (response.isError()) {

OctopushTransport.php (https://github.com/stof/symfony.git) PHP · 97 lines

31 private string $userLogin;

32 private string $apiKey;

33 private string $from;

35

36 public function __construct(string $userLogin, string $apiKey, string $from, string $type, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)

37 {

38 $this->userLogin = $userLogin;

39 $this->apiKey = $apiKey;

40 $this->from = $from;

69 'user_login' => $this->userLogin,

70 'api_key' => $this->apiKey,

71 'sms_text' => $message->getSubject(),

user.html (https://gitlab.com/rickmak/skygear-SDK-JS) HTML · 247 lines

118 'endPoint': '{{ SKYGEAR_ENDPOINT }}',

119 'apiKey': '{{ SKYGEAR_API_KEY }}'

120 }).then(function(container) {

ServiceBuilder.java (https://github.com/jfelectron/LJPro.git) Java · 123 lines

17 {

18 private String apiKey;

19 private String apiSecret;

74 *

75 * @param apiKey The api key for your application

76 * @return the {@link ServiceBuilder} instance for method chaining

77 */

78 public ServiceBuilder apiKey(String apiKey)

79 {

80 Preconditions.checkEmptyString(apiKey, "Invalid Api key");

81 this.apiKey = apiKey;

82 return this;

118 Preconditions.checkNotNull(api, "You must specify a valid api through the provider() method");

119 Preconditions.checkEmptyString(apiKey, "You must provide an api key");

120 Preconditions.checkEmptyString(apiSecret, "You must provide an api secret");

requests.go (https://gitlab.com/hasura/kubernetes) Go · 281 lines

75 // Test first for unrecognized arguments.

76 if options.APIKey != "" {

77 return createErr(ErrAPIKeyProvided)

OAuth2Manager.java (https://github.com/vilmospapp/liferay-portal.git) Java · 190 lines

129 "https://graph.microsoft.com/.default"

130 ).apiKey(

131 dlOneDriveCompanyConfiguration.clientId()

10_basic.yml (https://github.com/imotov/elasticsearch.git) YAML · 381 lines

119 headers:

120 Authorization: ApiKey ${login_creds}

121 security.authenticate: {}

328 headers:

329 Authorization: ApiKey ${login_creds}

330 security.has_privileges:

CloudServersUKProviderMetadata.java (https://github.com/ahgittin/legacy-jclouds.git) Java · 112 lines

80 .identityName("${userName}")

81 .credentialName("${apiKey}")

82 .version("2")

CronEventTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 215 lines

89 $appName = 'app_name';

90 $insightApiKey = 'insert_key_value';

91

108 ->method('getInsightsInsertKey')

109 ->willReturn($insightApiKey);

110

150 $appName = 'app_name';

151 $insightApiKey = 'insert_key_value';

152

167 ->method('getInsightsInsertKey')

168 ->willReturn($insightApiKey);

169

client.rb (https://github.com/macdiva/bitly.git) Ruby · 140 lines

11 def initialize(login, api_key)

12 @default_query_opts = { :login => login, :apiKey => api_key }

13 end

16 def validate(x_login, x_api_key)

17 response = get('/validate', :query => { :x_login => x_login, :x_apiKey => x_api_key })

18 return response['data']['valid'] == 1

34 #

35 # [x_login and x_apiKey] add this link to another user's history (both required)

36 #

TemplateUpdate.java (https://github.com/lightbody/jcm.git) Java · 204 lines

20 * &lt;sequence>

21 * &lt;element name="ApiKey" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>

22 * &lt;element name="TemplateID" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>

36 @XmlType(name = "", propOrder = {

37 "apiKey",

38 "templateID",

46

47 @XmlElement(name = "ApiKey")

48 protected String apiKey;

60 /**

61 * Gets the value of the apiKey property.

62 *

67 */

68 public String getApiKey() {

69 return apiKey;

JayCutter.cs (https://github.com/mpj/jaycut-dotnet-example.git) C# · 123 lines

24 public string JayCutUriAuthority { get; set; }

25 public string JayCutApiKey { get; set; }

26

41 "?login=" + doLogin +

42 "&api_key=" + JayCutApiKey +

43 "&signature=" + ToSHA1Hash(signatureBase) +

FFN.cs (https://github.com/marcneuwirth/FantasyFootballNerdAPI.NET.git) C# · 195 lines

37 /// </summary>

38 public string apiKey { get { return _ApiKey; } }

39

47 /// </summary>

48 /// <param name="ApiKey">Your ApiKey</param>

49 public FFN(string ApiKey)

50 {

51 this._ApiKey = ApiKey;

52 }

97 HttpWebRequest request = WebRequest.Create(String.Format("{0}{1}?apiKey={2}",

98 _FFN, _Players, _ApiKey)) as HttpWebRequest;

99

117 HttpWebRequest request = WebRequest.Create(String.Format("{0}{1}?apiKey={2}&playerId={3}",

118 _FFN, _PlayerDetails, _ApiKey, PlayerId)) as HttpWebRequest;

119

key_auth.class.php (https://bitbucket.org/frchico/chamilo_openshift.git) PHP · 262 lines

49 {

50 return UserApiKeyManager::create_temp_token($service, $duration, $user_id);

51 }

115 {

116 self::enable_services(UserApiKeyManager::default_service());

117 }

170

171 $key = UserApiKeyManager::get_by_id($token->get_id());

172 if (empty($key)) {

BuildPackages.ps1 (https://gitlab.com/0072016/dotnet-corex) Powershell · 171 lines

12 # The API key to use during publishing.

13 [string]$apiKey,

14

169 Invoke-Expression "$nugetPath pack $packageOutputDir\$package.nuspec -NoPackageAnalysis -NoDefaultExludes -OutputDirectory $packageOutputDir"

170 Invoke-Expression "$nugetPath push -NonInteractive $packageOutputDir\$package.nupkg -s $feed $apiKey"

171 }

WebApi.php (https://github.com/HyperionRiaz/steam-condenser.git) PHP · 136 lines

26 */

27 private static $apiKey = null;

28

33 */

34 public static function getApiKey() {

35 return self::$apiKey;

40 *

41 * @param string $apiKey The 128bit API key that has to be requested from

42 * http://steamcommunity.com/dev

43 */

44 public static function setApiKey($apiKey) {

45 if($apiKey != null && !preg_match('/^[0-9A-F]{32}$/', $apiKey)) {

48

49 self::$apiKey = $apiKey;

50 }

sp.resource.directory_test.js (https://gitlab.com/DinaMorad1/NodeTraining) JavaScript · 334 lines

16 describe('Directory resource', function () {

17 var dataStore = new DataStore({apiKey: {id: 1, secret: 2}});

18

TinyFBClient.java (https://github.com/prompt/preprompt-ioc-di-guice.git) Java · 202 lines

25 public class TinyFBClient {

26 String apiKey;

27 String secretKey;

44

45 public TinyFBClient( String apiKeyParm, String appSecretParm, String appIdParm){

46 this();

47 apiKey=apiKeyParm;

48 secretKey=appSecretParm;

49 standardParms.put("secret", secretKey);

50 standardParms.put("api_key", apiKey);

51 standardParms.put("app_id", appIdParm);

182

183 public void setApiKey(String apiKey){

184 this.apiKey=apiKey;

PetApi.cs (https://gitlab.com/akkhil2012/swagger-codegen) C# · 212 lines

145 /// <param name="petId">Pet id to delete</param>

146 /// <param name="apiKey"></param>

147 /// <response code="400">Invalid pet value</response>

150 [SwaggerOperation("DeletePet")]

151 public void DeletePet([FromRoute]long? petId, [FromHeader]string apiKey)

152 {

test_segment.py (git://github.com/campaignmonitor/createsend-python.git) Python · 114 lines

107

108 class ApiKeySegmentTestCase(unittest.TestCase, SegmentTestCase):

109 """Test when using an API key to authenticate"""

AttributesApi.md (https://gitlab.com/i-have-a-green/digitemis-v3) Markdown · 243 lines

23 // Configure API key authorization: api-key

24 $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');

25 // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed

26 // $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');

27 // Configure API key authorization: partner-key

28 $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('partner-key', 'YOUR_API_KEY');

29 // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed

30 // $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('partner-key', 'Bearer');

31

83 // Configure API key authorization: api-key

84 $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');

85 // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed

ApiKeyInitializer.java (https://gitlab.com/adam.lukaitis/iosched) Java · 94 lines

35 */

36 public class ApiKeyInitializer implements ServletContextListener {

37

39

40 public static final String ATTRIBUTE_ACCESS_KEY = "apiKey";

41

43 private static final String ENTITY_KEY = "MyKey";

44 private static final String ACCESS_KEY_FIELD = "ApiKey";

45

79 Key key = KeyFactory.createKey(ENTITY_KIND, ENTITY_KEY);

80 String apiKey = "";

81 try {

82 Entity entity = datastore.get(key);

83 apiKey = (String) entity.getProperty(ACCESS_KEY_FIELD);

84 } catch (EntityNotFoundException e) {

Sunlight.php (https://github.com/michaelmcandrew/citylink.git) PHP · 146 lines

37 static $_apiURL = 'http://api.sunlightlabs.com/';

38 static $_apiKey = null;

39

58 static function getCityState( $zipcode ) {

59 $key = self::$_apiKey;

60 $uri = "places.getCityStateFromZip.php?zip={$zipcode}&apikey={$key}&output=xml";

66 static function getDetailedInfo( $peopleID ) {

67 $key = self::$_apiKey;

68 $uri = "people.getPersonInfo.php?id={$peopleID}&apikey={$key}&output=xml";

109 }

110 $key = self::$_apiKey;

111 $city = urlencode( $city );

112 $uri = "people.reps.getRepsFromCityState.php?city={$city}&state={$state}&apikey={$key}&output=xml";

113 return self::getPeopleInfo( $uri );

ClientTest.php (https://gitlab.com/twinscom/notifier-php-client) PHP · 450 lines

67 'baseUri' => $baseUri,

68 'apiKey' => 'test-api-key',

69 ]);

106 ),

107 'apiKey' => 'test-api-key',

108 ]);

177 'guzzleHttpClient' => $guzzleHttpClient,

178 'apiKey' => 'test-api-key',

179 ]);

229 'guzzleHttpClient' => $guzzleHttpClient,

230 'apiKey' => 'test-api-key',

231 ]);

278 'guzzleHttpClient' => $guzzleHttpClient,

279 'apiKey' => 'test-api-key',

280 ]);

ReflectionInterface.java (https://gitlab.com/sugesk/flickr4java) Java · 204 lines

35

36 private final String apiKey;

37

44 *

45 * @param apiKey

46 * The API key

52 public ReflectionInterface(String apiKey, String sharedSecret, Transport transport) {

53 this.apiKey = apiKey;

54 this.sharedSecret = sharedSecret;

71

72 Response response = transport.get(transport.getPath(), parameters, apiKey, sharedSecret);

73 if (response.isError()) {

187

188 Response response = transport.get(transport.getPath(), parameters, apiKey, sharedSecret);

189 if (response.isError()) {

RequestBuilder.java (https://gitlab.com/kevintcoughlin/jumblr) Java · 214 lines

126 provider(TumblrApi.class).

127 apiKey(consumerKey).apiSecret(consumerSecret).

128 build();

SecurityOAuth.cs (https://github.com/jalchr/ravendb.git) C# · 300 lines

36 {

37 server.Database.Put("Raven/ApiKeys/test", null, RavenJObject.FromObject(new ApiKeyDefinition

38 {

82 {

83 server.Database.Put("Raven/ApiKeys/test", null, RavenJObject.FromObject(new ApiKeyDefinition

84 {

127

128 server.Database.Put("Raven/ApiKeys/test", null, RavenJObject.FromObject(new ApiKeyDefinition

129 {

194

195 server.Database.Put("Raven/ApiKeys/test", null, RavenJObject.FromObject(new ApiKeyDefinition

196 {

240

241 server.Database.Put("Raven/ApiKeys/test", null, RavenJObject.FromObject(new ApiKeyDefinition

242 {

UpdateApiKeyResponseUnmarshaller.cs (https://gitlab.com/vectorci/aws-sdk-net) C# · 149 lines

36 /// <summary>

37 /// Response Unmarshaller for UpdateApiKey operation

38 /// </summary>

39 public class UpdateApiKeyResponseUnmarshaller : JsonResponseUnmarshaller

40 {

47 {

48 UpdateApiKeyResponse response = new UpdateApiKeyResponse();

49

129

130 private static UpdateApiKeyResponseUnmarshaller _instance = new UpdateApiKeyResponseUnmarshaller();

131

132 internal static UpdateApiKeyResponseUnmarshaller GetInstance()

133 {

api.mustache (https://gitlab.com/akkhil2012/swagger-codegen) Mustache · 260 lines

59

60 class ApiKeyAuth implements Authentication {

61 public apiKey: string;

67 if (this.location == "query") {

68 (<any>requestOptions.qs)[this.paramName] = this.apiKey;

69 } else if (this.location == "header") {

70 requestOptions.headers[this.paramName] = this.apiKey;

71 }

110 {{/isBasic}}

111 {{#isApiKey}}

112 '{{name}}': new ApiKeyAuth({{#isKeyInHeader}}'header'{{/isKeyInHeader}}{{^isKeyInHeader}}'query'{{/isKeyInHeader}}, '{{keyParamName}}'),

113 {{/isApiKey}}

114 {{#isOAuth}}

ApiKeysSectionModel.cs (https://github.com/jalchr/ravendb.git) C# · 122 lines

26 var session = ApplicationModel.Current.Server.Value.DocumentStore.OpenAsyncSession();

27 session.Advanced.LoadStartingWithAsync<ApiKeyDefinition>("Raven/ApiKeys/", pageSize:256).ContinueOnSuccessInTheUIThread(

28 apiKeys =>

29 {

30 OriginalApiKeys = new ObservableCollection<ApiKeyDefinition>(apiKeys);

31 ApiKeys = new ObservableCollection<ApiKeyDefinition>(apiKeys);

72 var session = ApplicationModel.Current.Server.Value.DocumentStore.OpenAsyncSession();

73 session.Advanced.LoadStartingWithAsync<ApiKeyDefinition>("Raven/ApiKeys/" + SearchApiKeys).ContinueOnSuccessInTheUIThread(

74 apiKeys =>

75 {

76 OriginalApiKeys = new ObservableCollection<ApiKeyDefinition>(apiKeys);

77 ApiKeys = new ObservableCollection<ApiKeyDefinition>(apiKeys);

117 {

118 ApiKeys = new ObservableCollection<ApiKeyDefinition>(ApiKeys);

119 OnPropertyChanged(() => ApiKeys);

CustomVisionPredictionManager.java (git://github.com/WindowsAzure/azure-sdk-for-java.git) Java · 77 lines

31 * @param baseUrl the base URL of the service

32 * @param apiKey the Custom Vision Prediction API key

33 * @return the Custom Vision Prediction API client

34 */

35 public static CustomVisionPredictionClient authenticate(String baseUrl, final String apiKey) {

36 ServiceClientCredentials serviceClientCredentials = new ServiceClientCredentials() {

47 * @param credentials the management credentials for Azure

48 * @param apiKey the Custom Vision Prediction API key

49 * @return the Computer Vision API client

63 public static CustomVisionPredictionClient authenticate(String baseUrl, ServiceClientCredentials credentials, final String apiKey) {

64 return new CustomVisionPredictionClientImpl(baseUrl, credentials).withApiKey(apiKey);

65 }

74 public static CustomVisionPredictionClient authenticate(RestClient restClient, final String apiKey) {

75 return new CustomVisionPredictionClientImpl(restClient).withApiKey(apiKey);

76 }

BLGiphyRequestManager.swift (https://gitlab.com/qhcthanh/mygit) Swift · 193 lines

12 var limitDefault: UInt = 30

13 let kGiphyAPIKeyTrial = "dc6zaTOxFJmzC"

14 let kHostGiphyLink = "http://api.giphy.com/v1/gifs"

53 if type != "" {

54 link = "\(kHostGiphyLink)/\(type)?api_key=\(kGiphyAPIKeyTrial)"

55 } else {

56 link = "\(kHostGiphyLink)?api_key=\(kGiphyAPIKeyTrial)"

57 }

UserMethods.cs (https://github.com/svick/stacky.git) C# · 141 lines

16 {

17 key = apiKey,

18 page = options.Page ?? null,

73 {

74 key = apiKey,

75 page = options.Page ?? null,

105 {

106 key = apiKey,

107 fromdate = options.FromDate.HasValue ? (long?)options.FromDate.Value.ToUnixTime() : null,

132 {

133 key = apiKey,

134 fromdate = options.FromDate.HasValue ? (long?)options.FromDate.Value.ToUnixTime() : null,

Client.cs (https://github.com/kamaldeep/net-api-wrapper-with-source.git) C# · 133 lines

8 {

9 public static Result<string> Create(string apiKey, string companyName, string contactName, string emailAddress, string country, string timezone)

10 {

12

13 object o = _api.CreateClient(apiKey, companyName, contactName, emailAddress, country, timezone);

14

20

21 public static Result<string> UpdateBasics(string apiKey, string clientID, string companyName, string contactName, string emailAddress, string country, string timezone)

22 {

24

25 object o = _api.UpdateClientBasics(apiKey, clientID, companyName, contactName, emailAddress, country, timezone);

26

32

33 public static Result<string> UpdateAccessAndBilling(string apiKey, string clientID, int accessLevel, string username, string password, string billingType, string currency, string deliveryFee, string costPerRecipient, string designAndSpamTestFee)

34 {

update.py (https://gitlab.com/iislod/ckan) Python · 337 lines

221

222 def user_generate_apikey(context, data_dict):

223 user = context['user']

helpers.go (https://gitlab.com/unofficial-mirrors/kubernetes) Go · 164 lines

128

129 func getRuntimeConfigValue(overrides utilflag.ConfigurationMap, apiKey string, defaultValue bool) (bool, error) {

130 flagValue, ok := overrides[apiKey]

136 if err != nil {

137 return false, fmt.Errorf("invalid value of %s: %s, err: %v", apiKey, flagValue, err)

138 }

UpdateApiKeyRequest.java (https://gitlab.com/github-cloud-corp/aws-sdk-java) Java · 235 lines

77

78 public UpdateApiKeyRequest withApiKey(String apiKey) {

79 setApiKey(apiKey);

185 if (getApiKey() != null)

186 sb.append("ApiKey: " + getApiKey() + ",");

187 if (getPatchOperations() != null)

202 UpdateApiKeyRequest other = (UpdateApiKeyRequest) obj;

203 if (other.getApiKey() == null ^ this.getApiKey() == null)

204 return false;

205 if (other.getApiKey() != null

206 && other.getApiKey().equals(this.getApiKey()) == false)

207 return false;

222 hashCode = prime * hashCode

223 + ((getApiKey() == null) ? 0 : getApiKey().hashCode());

224 hashCode = prime

mailchimp.php (https://gitlab.com/gregtyka/lfmawordpress) PHP · 97 lines

78 'body' => array(

79 'apikey' => $this->api_key,

80 ),

User.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 364 lines

75

76 public static Collection<User> getFriends(String user, String apiKey) {

77 return getFriends(user, false, 100, apiKey);

79

80 public static Collection<User> getFriends(String user, boolean recenttracks, int limit, String apiKey) {

81 Result result = Caller.getInstance().call("user.getFriends", apiKey, "user", user, "recenttracks",

92

93 public static Collection<User> getNeighbours(String user, String apiKey) {

94 return getFriends(user, false, 100, apiKey);

96

97 public static Collection<User> getNeighbours(String user, int limit, String apiKey) {

98 Result result = Caller.getInstance()

99 .call("user.getNeighbours", apiKey, "user", user, "limit", String.valueOf(limit));

100 if (!result.isSuccessful())

commands_test.go (https://gitlab.com/github-cloud-corporation/machine) Go · 243 lines

158

159 defer func(factory func(baseDir string, apiKey string) crashreport.CrashReporter) {

160 crashreport.NewCrashReporter = factory

186 mockCrashReporter := &MockCrashReporter{}

187 crashreport.NewCrashReporter = func(baseDir string, apiKey string) crashreport.CrashReporter {

188 return mockCrashReporter

TwitlongerHelper.java (https://bitbucket.org/thenameisnigel/boid-for-twitter.git) Java · 164 lines

25

26 private TwitlongerHelper(String application, String apiKey, String username) {

27 _app = application;

28 _key = apiKey;

29 _user = username;

38 * @param application The application identifier given to you by Twitlonger.

39 * @param apiKey The API key given to you by Twitlonger.

40 * @param username The screenname of the user that will be posting long tweets.

42 */

43 public static TwitlongerHelper create(String application, String apiKey, String username) { return new TwitlongerHelper(application, apiKey, username); }

44

OAuthRequestAuthorizer.cs (https://github.com/jalchr/ravendb.git) C# · 207 lines

12 {

13 public bool Authorize(IHttpContext ctx, bool hasApiKey)

14 {

30

31 WriteAuthorizationChallenge(ctx, hasApiKey ? 412 : 401, "invalid_request", "The access token is required");

32

129

130 public IPrincipal GetUser(IHttpContext ctx, bool hasApiKey)

131 {

135 {

136 WriteAuthorizationChallenge(ctx, hasApiKey ? 412 : 401, "invalid_request", "The access token is required");

137

Api.php (https://gitlab.com/billyprice1/Stikked) PHP · 198 lines

42

43 if (config_item('apikey') != $this->input->get('apikey'))

44 {

91

92 if (config_item('apikey') != $this->input->get('apikey'))

93 {

119

120 if (config_item('apikey') != $this->input->get('apikey'))

121 {

136

137 if (config_item('apikey') != $this->input->get('apikey'))

138 {

165

166 if (config_item('apikey') != $this->input->get('apikey'))

167 {

FlickrStub.java (git://github.com/callmeal/Flickr4Java.git) Java · 488 lines

140 public String getApiKey() {

141 return apiKey;

142 }

149 */

150 public void setApiKey(String apiKey) {

151 if (apiKey == null) {

153 }

154 this.apiKey = apiKey;

155 }

290 if (interestingnessInterface == null) {

291 interestingnessInterface = new InterestingnessInterface(apiKey, sharedSecret, transport);

292 }

318 if (notesInterface == null) {

319 notesInterface = new NotesInterface(apiKey, sharedSecret, transport);

320 }

TagsInterface.java (https://gitlab.com/sugesk/flickr4java) Java · 411 lines

51

52 private final String apiKey;

53

60 *

61 * @param apiKey

62 * The API key

65 */

66 public TagsInterface(String apiKey, String sharedSecret, Transport transportAPI) {

67

68 this.apiKey = apiKey;

69 this.sharedSecret = sharedSecret;

91

92 Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret);

93 if (response.isError()) {

LaunchCrashDeliveryTest.kt (https://github.com/bugsnag/bugsnag-android.git) Kotlin · 166 lines

96 event.app.isLaunching = true

97 event.apiKey = "First"

98 eventStore.write(event)

99 event.apiKey = "Second"

100 eventStore.write(event)

109 )

110 assertEquals("Second", filenameInfo.apiKey)

111 }

ApiConnector.py (https://gitlab.com/farmee-public/farmee-controller-rpi) Python · 269 lines

44

45 def init(self, baseAddress, apikey, port=443):

46 self.baseAddress = baseAddress

51 # authorize

52 url = self.httpMode + '://' + self.baseAddress + ':' + str(port) + '/v1/oauth/token?apikey=' + apikey

53 logging.debug( "call %s", url )

BitLyShortenRequest.as (https://github.com/duponce/as3.git) ActionScript · 141 lines

23 public var login:String;

24 public var apiKey:String;

25 public var longURL:String;

50 vars["login"] = login;

51 vars["apiKey"] = apiKey;

52 vars["longUrl"] = longURL;

55 // http://code.google.com/p/bitly-api/wiki/ApiDocumentation

56 // Missing: .domain, .x_login, .x_apiKey

57

test_multilingual_plugin.py (https://gitlab.com/iislod/ckan) Python · 216 lines

31 ckan.tests.legacy.call_action_api(cls.app, 'organization_create',

32 apikey=cls.sysadmin_user.apikey,

33 **cls.org)

37 ckan.tests.legacy.call_action_api(cls.app, 'package_create',

38 apikey=cls.sysadmin_user.apikey,

39 **dataset)

db_api_spec.rb (https://gitlab.com/vectorci/td-client-ruby) Ruby · 123 lines

12 let :client do

13 Client.new(apikey)

14 end

TiFlurryModule.m (https://bitbucket.org/plepic/titanium_modules.git) Objective C · 175 lines

27

28 -(void)initialize:(id)apiKey

29 {

30 ENSURE_SINGLE_ARG(apiKey, NSString);

31 [FlurryAnalytics startSession:apiKey];

sessionsAndGroups.js (https://gitlab.com/auchalet/etherpad-lite) JavaScript · 365 lines

7

8 var filePath = path.join(__dirname, '../../../../APIKEY.txt');

9

10 var apiKey = fs.readFileSync(filePath, {encoding: 'utf-8'});

11 apiKey = apiKey.replace(/\n$/, "");

12 var apiVersion = 1;

352 var endPoint = function(point){

353 return '/api/'+apiVersion+'/'+point+'?apikey='+apiKey;

354 }

PetApi.as (https://gitlab.com/akkhil2012/swagger-codegen) ActionScript · 276 lines

217 */

218 public function delete_pet (petId: Number, apiKey: String): String {

219 // create path and map variables

229

230 headerParams["apiKey"] = toPathValue(apiKey);

231

FacebookSystemBean.java (https://gitlab.com/manoj-makkuboy/magnetism) Java · 166 lines

134 return "http://www.facebook.com/profile.php?uid="

135 + facebookAccount.getFacebookUserId() + "&api_key=" + getApiKey();

136 } catch (NotFoundException e) {

142 if ((facebookEvent.getEventType() == FacebookEventType.LOGIN_STATUS_EVENT) && (facebookEvent.getCount() == 0)) {

143 return "http://api.facebook.com/login.php?api_key=" + getApiKey() + "&next=/";

144 } else {

145 return "http://www.facebook.com/" + facebookEvent.getEventType().getPageName() + ".php?uid="

146 + facebookEvent.getFacebookAccount().getFacebookUserId() + "&api_key=" + getApiKey();

147 }

149

150 public String getApiKey() {

151 String apiKey;

152 try {

153 apiKey = config.getPropertyNoDefault(HippoProperty.FACEBOOK_API_KEY).trim();

154 if (apiKey.length() == 0)

datatype.php (https://gitlab.com/srueegger/Social-Meal) PHP · 211 lines

194 *

195 * @param string $apikey

196 * @return DataTypeShare

198 public function getShare($apikey){

199 return DataTypeShare::GetByDataTypeAndApiKey($this,$apikey);

200 }

202 /**

203 * @param string $apikey

204 * @return boolean

205 */

206 public function allowShare($apikey){

207 return $this->getShare($apikey) != null;

groups_test.rb (https://github.com/suhaspnehete/EngineY.git) Ruby · 116 lines

9 test "get all groups" do

10 get "/groups.json", :api_key=>'testapikey'

11 assert_response :success

20 test "get one group" do

21 get "groups/1.json", :api_key=>'testapikey'

22 assert_response :success

42 get "/logout"

43 post "/groups.xml", :api_key=>'testapikey',

44 :group => {:name=>'unit test group',

54 get "/logout"

55 post "/groups.json", :api_key => 'testapikey',

56 :group => {:name=>'unit test group',

77 get "/logout"

78 put "/groups/1.xml", :api_key => 'testapikey',

79 :group => { :name=>'renamed unit test group',

Handler.cfc (https://bitbucket.org/asfusion/mango-updates.git) ColdFusion CFScript · 179 lines

16 <cfset variables.manager = arguments.mainManager />

17 <cfset variables.apiKey = variables.preferencesManager.get(path,"apiKey","YOUR_AKISMET_API_KEY") />

18 <cfset variables.mode = variables.preferencesManager.get(path,"mode","moderate") />

49 <cfset var path = variables.manager.getBlog().getId() & "/" & variables.package />

50 <cfif NOT len(variables.preferencesManager.get(path,"apiKey",""))>

51 <cfset variables.preferencesManager.put(path,"apiKey","YOUR_AKISMET_API_KEY") />

139 <cfif structkeyexists(data.externaldata,"apply")>

140 <cfset variables.apiKey = data.externaldata.apiKey />

141 <cfset variables.mode = data.externaldata.mode />

142 <cfset path = variables.manager.getBlog().getId() & "/" & variables.package />

143 <cfset variables.preferencesManager.put(path,"apiKey",variables.apiKey) />

144 <cfset variables.preferencesManager.put(path,"mode",variables.mode) />

173 <cfset variables.cfakismet.setBlogURL(variables.manager.getBlog().getUrl())>

174 <cfset variables.cfakismet.setKey(variables.apiKey)>

175 <cfset variables.cfakismet.setApplicationName("Mango " & variables.manager.getVersion())>

QueueingServiceExamples.vb (https://gitlab.com/rekby-archive/onlyoffice-CommunityServer) Visual Basic · 115 lines

13 .Username = "MyUser",

14 .APIKey = "API_KEY_HERE"

15 }

MapperDbTable.php (https://github.com/HomeNet/HomeNet.me-Website.git) PHP · 191 lines

3 /*

4 * ApikeyMapperDbTable.php

5 *

ShortenComponent.php (https://github.com/MadMikeyB/CakePHP-Scrapbook.git) PHP · 130 lines

44 if (empty($options['kwn'])) { // check if the user has passed any args with the shorten func

45 $this->kwnApiKey = 'REPLACEME'; // get from kwn.me/api?act=key

46 $this->kwnDomain = 'kwn.me'; // can be kwn.me or quicklink.me

47 } else {

48 $this->kwnApiKey = $options['kwn']['ApiKey'];

49 $this->kwnDomain = $options['kwn']['Domain'];

72 $this->bitlyLogin = $options['bitly']['Login'];

73 $this->bitlyApiKey = $options['bitly']['ApiKey'];

74 $this->bitlyFormat = $options['bitly']['Format'];

76 // get stuff done

77 $bitlyshortenedURL = file_get_contents("http://api.bitly.com/v3/shorten?login={$this->bitlyLogin}&apiKey={$this->bitlyApiKey}&longUrl={$longurl}&format={$this->bitlyFormat}");

78 if (!empty($bitlyshortenedURL)) {

109 $this->googleDomain = $options['google']['Domain'];

110 $this->googleApiKey = $options['google']['ApiKey'];

111 }

PetApi.ts (https://gitlab.com/akkhil2012/swagger-codegen) TypeScript · 382 lines

86 * @param petId Pet id to delete

87 * @param apiKey

88 */

89 public deletePet (petId: number, apiKey?: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> {

90 const localVarPath = this.basePath + '/pet/{petId}'

98 }

99 headerParams['api_key'] = apiKey;

100

user_tests.rb (https://gitlab.com/debian-ruby/ruby-fog-rackspace) Ruby · 106 lines

23 CREDENTIAL_FORMAT = {

24 'RAX-KSKEY:apiKeyCredentials' => {

25 'username' => String,

26 'apiKey' => String

27 }

HttpUrlConnectionFactory.java (https://github.com/softwareguruji/spreadshirtapps.git) Java · 165 lines

31 public HttpUrlConnectionFactory(String apiKey, String secret, String sessionId) {

32 this.apiKey = apiKey;

33 this.secret = secret;

37 public String getApiKey() {

38 return apiKey;

39 }

41 public void setApiKey(String apiKey) {

42 this.apiKey = apiKey;

43 }

68 HttpMethod tunneledMethod,

69 boolean apiKeyProtected,

70 boolean sessionIdProtected,

78 "" + API_KEY + " or " + SIG + " or " + TIME + "!");

79 if (apiKey == null || secret == null)

80 throw new IllegalArgumentException("APIKey or secret not found!");

NSMutableDictionary+SSDKInit.h (https://gitlab.com/bigmanhxx/17-muxie) C Header · 291 lines

67 */

68 - (void)SSDKSetupFacebookByApiKey:(NSString *)apiKey

69 appSecret:(NSString *)appSecret

91 */

92 - (void)SSDKSetupDouBanByApiKey:(NSString *)apiKey

93 secret:(NSString *)secret

115 */

116 - (void)SSDKSetupKaiXinByApiKey:(NSString *)apiKey

117 secretKey:(NSString *)secretKey

159 */

160 - (void)SSDKSetupLinkedInByApiKey:(NSString *)apiKey

161 secretKey:(NSString *)secretKey

180 */

181 - (void)SSDKSetupFlickrByApiKey:(NSString *)apiKey

182 apiSecret:(NSString *)apiSecret;

bugzilla.lua (https://gitlab.com/yeah568/telegram-bot) Lua · 105 lines

14 -- data = bugzilla_login()

15 local url = BASE_URL.."bug/" .. id .. "?api_key=" .. _config.bugzilla.apikey

16 -- print(url)

22 local function bugzilla_listopened(email)

23 local url = BASE_URL.."bug?include_fields=id,summary,status,whiteboard,resolution&email1=" .. email .. "&email2=" .. email .. "&emailassigned_to2=1&emailreporter1=1&emailtype1=substring&emailtype2=substring&f1=bug_status&f2=bug_status&n1=1&n2=1&o1=equals&o2=equals&resolution=---&v1=closed&v2=resolved&api_key=" .. _config.bugzilla.apikey

24 local res,code = https.request( url )

MarketPluginTools.dal.test.php (https://github.com/orchestra-io/sample-openx.git) PHP · 172 lines

128 $publisherAccountId = 'test_publ_isher_accountid';

129 $apiKey = 'apikey';

130

131 $result = OX_Dal_Market_MarketPluginTools::storeMarketAccountAssocData($publisherAccountId, $apiKey);

132 $this->assertTrue($result);

134 $result = OA_Dal_ApplicationVariables::_getAll();

135 $result['oxMarket_publisher_account_id'] = $apiKey;

136 $result['oxMarket_api_key'] = $publisherAccountId;

146 $publisherAccountId = 'test2_publ_isher_accountid';

147 $apiKey = 'apikey2';

148

158 $result = OX_Dal_Market_MarketPluginTools::getMarketAccountAssocData();

159 $this->assertEqual($result, array('apiKey' => $apiKey, 'accountUuid' => $publisherAccountId));

160

settings.html (https://gitlab.com/minaz922/reaction-core-deprecated) HTML · 126 lines

104 {{> afQuickField name='settings.google.clientId'}}

105 {{> afQuickField name='settings.google.apiKey'}}

106 {{> shopSettingsSubmitButton}}

auth_spec.rb (https://github.com/wuputah/heroku.git) Ruby · 163 lines

57 @cli.stub!(:check)

58 @cli.stub!(:ask_for_credentials).and_return("username", "apikey")

59 @cli.should_receive(:write_credentials)

66 @cli.stub!(:retry_login?).and_return(false)

67 @cli.stub!(:ask_for_credentials).and_return("username", "apikey")

68 @cli.stub!(:check) { raise RestClient::Unauthorized }

76 @cli.stub!(:delete_credentials)

77 @cli.stub!(:ask_for_credentials).and_return("username", "apikey")

78 @cli.stub!(:check) { raise RestClient::Unauthorized }

99 FileUtils.mkdir_p("~/.ssh")

100 @cli.stub!(:ask_for_credentials).and_return("username", "apikey")

101 end

tumblr.js (https://gitlab.com/kevintcoughlin/tumblr.js) JavaScript · 253 lines

154

155 _get: function (path, params, callback, addApiKey) {

156

157 params = params || {};

158 if (addApiKey) {

159 params.api_key = this.credentials.consumer_key;

GetApiKeyResponseUnmarshaller.cs (https://gitlab.com/github-cloud-corp/aws-sdk-net) C# · 145 lines

36 /// <summary>

37 /// Response Unmarshaller for GetApiKey operation

38 /// </summary>

39 public class GetApiKeyResponseUnmarshaller : JsonResponseUnmarshaller

40 {

47 {

48 GetApiKeyResponse response = new GetApiKeyResponse();

49

125

126 private static GetApiKeyResponseUnmarshaller _instance = new GetApiKeyResponseUnmarshaller();

127

128 internal static GetApiKeyResponseUnmarshaller GetInstance()

129 {

WebserviceCodeGenInfo.java (https://gitlab.com/jsr38/intermine) Java · 204 lines

189 public String getUserToken() {

190 if (user.getApiKey() != null) {

191 return user.getApiKey();

login.html (https://github.com/arindambiswas/NatGeo.git) HTML · 84 lines

36 // initialize the library with the API key

37 FB.init({ apiKey: '48f06bc570aaf9ed454699ec4fe416df' });

38

ApiKey.h (https://gitlab.com/vectorci/aws-sdk-cpp) C Header · 296 lines

40 */

41 class AWS_APIGATEWAY_API ApiKey

42 {

43 public:

44 ApiKey();

45 ApiKey(const Aws::Utils::Json::JsonValue& jsonValue);

46 ApiKey& operator=(const Aws::Utils::Json::JsonValue& jsonValue);

47 Aws::Utils::Json::JsonValue Jsonize() const;

71 */

72 inline ApiKey& WithId(const Aws::String& value) { SetId(value); return *this;}

73

76 */

77 inline ApiKey& WithId(Aws::String&& value) { SetId(value); return *this;}

78

InternalReportDelegate.java (https://github.com/bugsnag/bugsnag-android.git) Java · 136 lines

105 event.addMetadata(INTERNAL_DIAGNOSTICS_TAB, "notifierVersion", notifier.getVersion());

106 event.addMetadata(INTERNAL_DIAGNOSTICS_TAB, "apiKey", config.getApiKey());

107

FKFlickrPhotosPeopleEditCoords.h (https://gitlab.com/vicrius/flickrVisualizer) C Header · 64 lines

23 FKFlickrPhotosPeopleEditCoordsError_UserNotLoggedInOrInsufficientPermissions = 99, /* The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions. */

24 FKFlickrPhotosPeopleEditCoordsError_InvalidAPIKey = 100, /* The API key passed was not valid or has expired. */

25 FKFlickrPhotosPeopleEditCoordsError_ServiceCurrentlyUnavailable = 105, /* The requested service is temporarily unavailable. */

FKFlickrPhotosGeoSetPerms.m (https://gitlab.com/vicrius/flickrVisualizer) Objective C · 127 lines

104 return @"User not logged in / Insufficient permissions";

105 case FKFlickrPhotosGeoSetPermsError_InvalidAPIKey:

106 return @"Invalid API Key";

Util.java (https://bitbucket.org/plepic/titanium_modules.git) Java · 175 lines

69 else if (status.equals("application_restricted")) {

70 message = "You provided an invalid apiKey, or the apiKey is restricted from calling this function!";

71 }

security.js (https://gitlab.com/abh1/web-applications-study-group) JavaScript · 135 lines

8 "api_key": {

9 "type": "apiKey",

10 "name": "apikey",

42 "api_key": {

43 "type": "apiKey",

44 "name": "apikey",

74 "api_key": {

75 "type": "apiKey",

76 "name": "apikey",

106 "api_key": {

107 "type": "apiKey",

108 "name": "apikey",

Parser.php (https://github.com/rkabir/Swiftriver.git) PHP · 121 lines

9 * @param \Swiftriver\Core\ObjectModel\Content[] $items

10 * @param string $apiKey

11 * @return string

12 */

13 public function ParseToRequestJson($items, $apiKey) {

14 //set up the array to hold the item dtos

25 //Add the json header information

26 $object->key = $apiKey;

27

37

38 public function ParseItemToRequestJson($item, $apiKey) {

39 $i->id = $item->id;

42 //Add the json header information

43 $object->key = $apiKey;

44