100+ results for 'apikey'
Not the results you expected?
PowwowServerLocalServiceWrapper.java (https://github.com/kiyoshilee/liferay-portal.git) Java · 350 lines
37 public com.liferay.powwow.model.PowwowServer addPowwowServer(
38 long userId, String name, String providerType, String url,
39 String apiKey, String secret,
40 com.liferay.portal.kernel.service.ServiceContext serviceContext)
41 throws com.liferay.portal.kernel.exception.PortalException {
43 return _powwowServerLocalService.addPowwowServer(
44 userId, name, providerType, url, apiKey, secret, serviceContext);
45 }
312 public com.liferay.powwow.model.PowwowServer updatePowwowServer(
313 long powwowServerId, String name, String providerType, String url,
314 String apiKey, String secret,
315 com.liferay.portal.kernel.service.ServiceContext serviceContext)
316 throws com.liferay.portal.kernel.exception.PortalException {
swagger.yaml (https://github.com/LyricTian/gin-admin.git) YAML · 1583 lines
478 $ref: '#/definitions/schema.ErrorResult'
479 security:
480 - ApiKeyAuth: []
481 summary: 查询数据
482 tags:
508 $ref: '#/definitions/schema.ErrorResult'
509 security:
510 - ApiKeyAuth: []
511 summary: 创建数据
512 tags:
534 $ref: '#/definitions/schema.ErrorResult'
535 security:
536 - ApiKeyAuth: []
537 summary: 删除数据
538 tags:
weather_underground.py (https://gitlab.com/cburki/python_wunderground) Python · 361 lines
37 """
39 URL = 'http://api.wunderground.com/api/{apikey}/{features}/q/{location}.json'
40 QUERY_TIMEOUT = 30
41 FEATURES = ['conditions', 'forecast', 'forecast10day', 'hourly', 'astronomy', 'geolookup']
58 """
60 self._apiKey = apiKey
61 self._cache = cache
62 self._api = PoolManager(timeout=WeatherUnderground.QUERY_TIMEOUT)
325 """
327 url = WeatherUnderground.URL.format(apikey=self._apiKey, features=features, location=location)
329 try:
impermium.php (https://github.com/PopSugar/Impermium-PHP.git) PHP · 449 lines
66 * @access private
67 */
68 private $_apiKey;
70 /**
110 */
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;
114 $this->_apiVersion = $api_version;
125 */
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;
129 }
client.rb (https://github.com/paulfranzen/transparency-data.git) Ruby · 249 lines
Settings.h (https://github.com/openscad/openscad.git) C Header · 283 lines
flurryWithLocation.cs (https://github.com/playdough/monotouch-libs.git) C# · 161 lines
36 void SetShowErrorInLogEnabled (bool value);
38 //+ (void)unlockDebugMode:(NSString*)debugModeKey apiKey:(NSString *)apiKey;
39 [Static, Export ("unlockDebugMode:apiKey:")]
40 void UnlockDebugMode (string debugModeKey, string apiKey);
42 //+ (void)setPauseSecondsBeforeStartingNewSession:(int)seconds;
44 void SetPauseSecondsBeforeStartingNewSession (int seconds);
46 //+ (void)startSession:(NSString *)apiKey;
47 [Static, Export ("startSession:")]
48 void StartSession (string apiKey);
128 void SetAppCircleDelegate (IntPtr appCircleDelegate);
130 //+ (CLLocationManager *)startSessionWithLocationServices:(NSString *)apiKey;
131 [Static, Export ("startSessionWithLocationServices:")]
132 CLLocationManager StartSessionWithLocationServices (string apiKey);
fingerprinting.py (https://github.com/lalinsky/picard.git) Python · 144 lines
52 self.ui.acoustid_fpcalc_browse.clicked.connect(self.acoustid_fpcalc_browse)
53 self.ui.acoustid_fpcalc_download.clicked.connect(self.acoustid_fpcalc_download)
54 self.ui.acoustid_apikey_get.clicked.connect(self.acoustid_apikey_get)
56 def load(self):
60 self.ui.disable_fingerprinting.setChecked(True)
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"])
64 self.update_groupboxes()
70 config.setting["fingerprinting_system"] = ""
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()
models.py (https://github.com/ziadsawalha/keystone.git) Python · 187 lines
DetailInvoker.java (https://github.com/lolay/citygrid-java-old.git) Java · 213 lines
41 private String phone = null;
42 private String publisher = null;
43 private String apiKey = null;
44 private Boolean customerOnly = null;
45 private Boolean allResults = null;
81 return apiKey;
82 }
83 public void setApiKey(String apiKey) {
84 this.apiKey = apiKey;
138 return builder().listingId(prototype.getListingId()).infoUsaId(prototype.getInfoUsaId())
139 .phone(prototype.getPhone()).publisher(prototype.getPublisher())
140 .apiKey(prototype.getApiKey()).customerOnly(prototype.getCustomerOnly())
141 .allResults(prototype.getAllResults()).reviewCount(prototype.getReviewCount())
142 .placement(prototype.getPlacement()).clientIp(prototype.getClientIp());
177 }
179 public Builder apiKey(String apiKey) {
180 instance.setApiKey(apiKey);
PetApi.md (https://github.com/OpenAPITools/openapi-generator.git) Markdown · 379 lines
64 # **deletePet**
65 > deletePet(petId, apiKey)
67 Deletes a pet
75 var api_instance = PetApi();
76 var petId = 789; // int | Pet id to delete
77 var apiKey = apiKey_example; // String |
79 try {
207 import 'package:openapi/api.dart';
208 // TODO Configure API key authorization: api_key
209 //defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
210 // uncomment below to setup prefix (e.g. Bearer) for API key, if needed
211 //defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
Account.php (https://gitlab.com/Blueprint-Marketing/dyn-php) PHP · 796 lines
71 * @var string
72 */
73 protected $apiKey;
75 /**
154 ->setUserType($json->usertype)
155 ->setCreated($json->created)
156 ->setApiKey($json->apikey)
157 ->setTimeZone($json->timezone)
158 ->setTrackLinks($json->tracklinks)
494 * @param string $apiKey
495 */
496 public function setApiKey($apiKey)
497 {
498 $this->apiKey = $apiKey;
user.php (https://github.com/sseshachala/Open-Web-Analytics.git) PHP · 96 lines
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'])
53 def test_user_cannot_create_group_when_config_is_False(self):
57 tests.call_action_api(app, 'group_create', name='test-group',
58 apikey=user['apikey'], status=403)
60 def test_visitor_cannot_create_group_when_config_is_False(self):
70 tests.call_action_api(app, 'group_create', name='test-group',
71 apikey=sysadmin['apikey'])
73 def test_user_can_create_group_when_config_is_True(self):
AlbumApi.php (https://github.com/matto1990/PHP-Last.fm-API.git) PHP · 270 lines
46 $vars = array(
47 'method' => 'album.addtags',
48 'api_key' => $this->getAuth()->apiKey,
49 'sk' => $this->getAuth()->sessionKey
50 );
81 $vars = array(
82 'method' => 'album.getinfo',
83 'api_key' => $this->getAuth()->apiKey
84 );
85 $vars = array_merge($vars, $methodVars);
142 $vars = array(
143 'method' => 'album.gettags',
144 'api_key' => $this->getAuth()->apiKey,
145 'sk' => $this->getAuth()->sessionKey
146 );
event.php (https://github.com/aophdidea8/aophdidea8.git) PHP · 294 lines
51 $vars = array(
52 'method' => 'event.attend',
53 'api_key' => $this->auth->apiKey,
54 'sk' => $this->auth->sessionKey
55 );
88 $vars = array(
89 'method' => 'event.getattendees',
90 'api_key' => $this->auth->apiKey
91 );
92 $vars = array_merge($vars, $methodVars);
129 $vars = array(
130 'method' => 'event.getinfo',
131 'api_key' => $this->auth->apiKey
132 );
133 $vars = array_merge($vars, $methodVars);
Geo.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 162 lines
29 * @param location Specifies a location to retrieve events for
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;
36 int page = 1, total;
37 do {
38 PaginatedResult<Event> result = getEvents(location, distance, page, apiKey);
39 total = result.getTotalPages();
40 Collection<Event> pageResults = result.getPageResults();
Library.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 257 lines
25 *
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);
37 * @param user The user whose library you want to fetch.
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);
elementindex_default.html (https://github.com/eXeDK/VirusTotal-API-PHP-class.git) HTML · 240 lines
92 <dl>
93 <dt class="field">
94 <span class="method-title">getApiKey</span>
95 </dt>
96 <dd class="index-item-body">
97 <div class="index-item-details"><a href="default/VirusTotal.html#methodgetApiKey">VirusTotal::getApiKey()</a> in VirusTotal.php</div>
98 <div class="index-item-description">Getter for the API-key</div>
99 </dd>
173 </dt>
174 <dd class="index-item-body">
175 <div class="index-item-details"><a href="default/VirusTotal.html#methodsetApiKey">VirusTotal::setApiKey()</a> in VirusTotal.php</div>
176 <div class="index-item-description">Setter for the API-key</div>
177 </dd>
FlickrRestStore.js (https://github.com/eladmeidar/EngineY.git) JavaScript · 476 lines
33 query: {
34 userid: "44153025@N00",
35 apikey: "8c6803164dbc395fb7131c9d54843627"
36 },
37 count: 1,
69 query: {
70 userid: "44153025@N00",
71 apikey: "8c6803164dbc395fb7131c9d54843627"
72 },
73 onBegin: null,
147 query: {
148 userid: "44153025@N00",
149 apikey: "8c6803164dbc395fb7131c9d54843627"
150 },
151 count: 7,
GetUsagePlanKeyResult.h (https://github.com/aws/aws-sdk-cpp.git) C Header · 208 lines
29 * class="remarks"> <p>To associate an API stage with a selected API key in a usage
30 * plan, you must create a UsagePlanKey resource to represent the selected
31 * <a>ApiKey</a>.</p> </div>" <div class="seeAlso"> <a
32 * href="https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html">Create
33 * and Use Usage Plans</a> </div><p><h3>See Also:</h3> <a
RecommendationsAI.php (https://gitlab.com/Japang-Jawara/jawara-penilaian) PHP · 449 lines
49 public $projects_locations_catalogs_eventStores_operations;
50 public $projects_locations_catalogs_eventStores_placements;
51 public $projects_locations_catalogs_eventStores_predictionApiKeyRegistrations;
52 public $projects_locations_catalogs_eventStores_userEvents;
53 public $projects_locations_catalogs_operations;
259 ]
260 );
261 $this->projects_locations_catalogs_eventStores_predictionApiKeyRegistrations = new RecommendationsAI\Resource\ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrations(
262 $this,
263 $this->serviceName,
264 'predictionApiKeyRegistrations',
265 [
266 'methods' => [
middleware_ip_whitelist_test.go (https://gitlab.com/jjae2124/tyk) Go · 382 lines
162 log.Debug("CREATING TEMPORARY API FOR IP WHITELIST")
163 thisSpec := createDefinitionFromString(apiTestDef)
164 redisStore := RedisStorageManager{KeyPrefix: "apikey-"}
165 healthStore := &RedisStorageManager{KeyPrefix: "apihealth."}
166 orgStore := &RedisStorageManager{KeyPrefix: "orgKey."}
182 func TestIpMiddlewareIPFail(t *testing.T) {
183 spec := MakeIPSampleAPI(ipMiddlewareTestDefinitionEnabledFail)
184 redisStore := RedisStorageManager{KeyPrefix: "apikey-"}
185 healthStore := &RedisStorageManager{KeyPrefix: "apihealth."}
186 orgStore := &RedisStorageManager{KeyPrefix: "orgKey."}
211 func TestIpMiddlewareIPPass(t *testing.T) {
212 spec := MakeIPSampleAPI(ipMiddlewareTestDefinitionEnabledPass)
213 redisStore := RedisStorageManager{KeyPrefix: "apikey-"}
214 healthStore := &RedisStorageManager{KeyPrefix: "apihealth."}
215 orgStore := &RedisStorageManager{KeyPrefix: "orgKey."}
TelegramAPI.java (https://gitlab.com/plotnikau/telebotapi) Java · 251 lines
GetChildInfoTest.php (https://gitlab.com/i-have-a-green/digitemis-v3) PHP · 141 lines
ContactsFacade.php (https://gitlab.com/kubiq/eveblues) PHP · 153 lines
5 use EveBlues\Crest\Crest;
6 use EveBlues\Model\Alliance\AlliancesRepository;
7 use EveBlues\Model\ApiKey\ApiKey;
8 use EveBlues\Model\ApiKey\ApiKeysRepository;
48 public function __construct(
49 ApiKeysRepository $apiKeysRepository,
50 AlliancesRepository $alliancesRepository,
51 Crest $crest,
62 $this->characterContactsRepository = $characterContactsRepository;
63 $this->labelsRepository = $labelsRepository;
64 $this->apiKeysRepository = $apiKeysRepository;
65 $this->charactersRepository = $charactersRepository;
66 $this->crest = $crest;
74 }
76 public function getContacts(User $owner, ApiKey $apiKey, int $characterId) :Character {
78 /** @var Character $character */
com.metinkale.prayer.yml (https://gitlab.com/luelista/fdroiddata) YAML · 313 lines
AlterReplicaLogDirsResponse.java (https://github.com/linkedin/kafka.git) Java · 146 lines
20 import org.apache.kafka.common.TopicPartition;
21 import org.apache.kafka.common.protocol.ApiKeys;
22 import org.apache.kafka.common.protocol.Errors;
23 import org.apache.kafka.common.protocol.types.ArrayOf;
100 @Override
101 protected Struct toStruct(short version) {
102 Struct struct = new Struct(ApiKeys.ALTER_REPLICA_LOG_DIRS.responseSchema(version));
103 struct.set(THROTTLE_TIME_MS, throttleTimeMs);
104 Map<String, Map<Integer, Errors>> responsesByTopic = CollectionUtils.groupPartitionDataByTopic(responses);
138 public static AlterReplicaLogDirsResponse parse(ByteBuffer buffer, short version) {
139 return new AlterReplicaLogDirsResponse(ApiKeys.ALTER_REPLICA_LOG_DIRS.responseSchema(version).read(buffer));
140 }
Bitly.js (https://github.com/zephrax/node-bitly.git) JavaScript · 192 lines
69 var query = {
70 login: this.config.login,
71 apiKey: this.config.api_key,
72 format: this.config.format,
73 longUrl: longUrl,
92 var query = {
93 login: this.config.login,
94 apiKey: this.config.api_key,
95 format: this.config.format,
96 shortUrl: shortUrl,
116 var query = {
117 login: this.config.login,
118 apiKey: this.config.api_key,
119 format: this.config.format,
120 shortUrl: shortUrl,
G3Connection.java (https://github.com/dtsang29/ReGalAndroid.git) Java · 173 lines
ConnectionsV1Api.md (https://github.com/polyaxon/polyaxon.git) Markdown · 394 lines
31 let ApiKey = defaultClient.authentications['ApiKey'];
32 ApiKey.apiKey = 'YOUR API KEY';
33 // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
34 //ApiKey.apiKeyPrefix = 'Token';
60 ### Authorization
62 [ApiKey](../README.md#ApiKey)
64 ### HTTP request headers
183 // Configure API key authorization: ApiKey
184 let ApiKey = defaultClient.authentications['ApiKey'];
185 ApiKey.apiKey = 'YOUR API KEY';
386 ### Authorization
388 [ApiKey](../README.md#ApiKey)
390 ### HTTP request headers
DesignMovieService.cs (https://github.com/blackjid/CouchPotatoWp7.git) C# · 77 lines
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', (
19 ('date_insert', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
20 ))
21 db.send_create_signal(u'api', ['ApiKey'])
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'},
HomeController.cs (https://github.com/InstantASP/plato.git) C# · 357 lines
329 {
330 // Configure spam client
331 _spamClient.Configure(async o => { o.ApiKey = await GetStopForumSpamApiKeyAsync(); });
332 }
334 async Task<string> GetStopForumSpamApiKeyAsync()
335 {
336 // Get spam settings
345 // Ensure we have an api key
346 if (String.IsNullOrEmpty(settings.ApiKey))
347 {
348 throw new Exception("A StopForumSpam API key is required!");
SwaggerAuthHandlerFactory.java (https://github.com/phiz71/vertx-swagger.git) Java · 142 lines
3 import com.github.phiz71.vertx.swagger.router.SwaggerRouter;
4 import com.github.phiz71.vertx.swagger.router.auth.ApiKeyAuthHandler.Location;
5 import io.swagger.models.auth.ApiKeyAuthDefinition;
52 case "apiKey":
53 ApiKeyAuthDefinition apiKeyAuthDefinition = (ApiKeyAuthDefinition) securityScheme;
54 Location apiKeyLocation = Location.valueOf(apiKeyAuthDefinition.getIn().name());
55 authHandler = ApiKeyAuthHandler.create(authProvider, apiKeyLocation, apiKeyAuthDefinition.getName());
56 break;
57 case "basic":
WebApi.php (https://github.com/HyperionRiaz/steam-condenser.git) PHP · 136 lines
25 * @var string
26 */
27 private static $apiKey = null;
29 /**
32 * @return string The Steam Web API key
33 */
34 public static function getApiKey() {
35 return self::$apiKey;
42 * http://steamcommunity.com/dev
43 */
44 public static function setApiKey($apiKey) {
45 if($apiKey != null && !preg_match('/^[0-9A-F]{32}$/', $apiKey)) {
47 }
49 self::$apiKey = $apiKey;
50 }
QueueingServiceExamples.fs (https://gitlab.com/rekby-archive/onlyoffice-CommunityServer) F# · 121 lines
FBSession.h (https://github.com/neojjang/MIT-Mobile-for-iPhone.git) C Header · 203 lines
authentication.py (https://github.com/johncosta/django-jcosta-tastypie.git) Python · 166 lines
4 from django.http import HttpRequest
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
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()
Method.cs (https://gitlab.com/CORP-RESELLER/aws-sdk-net) C# · 201 lines
33 public partial class Method
34 {
35 private bool? _apiKeyRequired;
36 private string _authorizationType;
37 private string _authorizerId;
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(); }
TDOperatorTest.java (https://gitlab.com/github-cloud-corp/digdag) Java · 203 lines
53 Config config = newConfig()
54 .set("database", "")
55 .set("apikey", "foobar");
57 exception.expect(ConfigException.class);
65 Config config = newConfig()
66 .set("database", " \t\n")
67 .set("apikey", "foobar");
69 exception.expect(ConfigException.class);
73 @Test
74 public void verifyEmptyApiKeyParameterIsRejected()
75 throws Exception
76 {
GetChildInfoApiKeysV3.php (https://gitlab.com/i-have-a-green/digitemis-v3) PHP · 337 lines
1 <?php
2 /**
3 * GetChildInfoApiKeysV3
4 *
5 * PHP version 5
35 /**
36 * GetChildInfoApiKeysV3 Class Doc Comment
37 *
38 * @category Class
41 * @link https://github.com/swagger-api/swagger-codegen
42 */
43 class GetChildInfoApiKeysV3 implements ModelInterface, ArrayAccess
44 {
45 const DISCRIMINATOR = null;
GetChildInfoApiKeysV2.php (https://gitlab.com/i-have-a-green/digitemis-v3) PHP · 337 lines
1 <?php
2 /**
3 * GetChildInfoApiKeysV2
4 *
5 * PHP version 5
35 /**
36 * GetChildInfoApiKeysV2 Class Doc Comment
37 *
38 * @category Class
41 * @link https://github.com/swagger-api/swagger-codegen
42 */
43 class GetChildInfoApiKeysV2 implements ModelInterface, ArrayAccess
44 {
45 const DISCRIMINATOR = null;
YouTube.android.js (https://github.com/inProgress-team/react-native-youtube.git) JavaScript · 230 lines
common_test.go (https://github.com/alipay/sofa-mesh.git) Go · 176 lines
33 }{
34 {"empty", &config.Params{}, []gapiopts.ClientOption{}},
35 {"api key", &config.Params{Creds: &config.Params_ApiKey{}}, []gapiopts.ClientOption{gapiopts.WithAPIKey("")}},
36 {"app creds", &config.Params{Creds: &config.Params_AppCredentials{}}, []gapiopts.ClientOption{}},
37 {"service account",
settings.py (https://github.com/runderwood/openstates.git) Python · 97 lines
base.php (https://github.com/cindyli/ATutor.git) PHP · 141 lines
CloudServersUKProviderMetadata.java (https://github.com/richardcloudsoft/legacy-jclouds.git) Java · 112 lines
FKFlickrStatsGetPhotosetStats.m (https://gitlab.com/vicrius/flickrVisualizer) Objective C · 108 lines
84 case FKFlickrStatsGetPhotosetStatsError_UserNotLoggedInOrInsufficientPermissions:
85 return @"User not logged in / Insufficient permissions";
86 case FKFlickrStatsGetPhotosetStatsError_InvalidAPIKey:
87 return @"Invalid API Key";
88 case FKFlickrStatsGetPhotosetStatsError_ServiceCurrentlyUnavailable:
FKFlickrPhotosCommentsAddComment.m (https://gitlab.com/vicrius/flickrVisualizer) Objective C · 106 lines
82 case FKFlickrPhotosCommentsAddCommentError_UserNotLoggedInOrInsufficientPermissions:
83 return @"User not logged in / Insufficient permissions";
84 case FKFlickrPhotosCommentsAddCommentError_InvalidAPIKey:
85 return @"Invalid API Key";
86 case FKFlickrPhotosCommentsAddCommentError_ServiceCurrentlyUnavailable:
FKFlickrGroupsBrowse.h (https://gitlab.com/vicrius/flickrVisualizer) C Header · 58 lines
18 FKFlickrGroupsBrowseError_LoginFailedOrInvalidAuthToken = 98, /* The login details or auth token passed were invalid. */
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. */
22 FKFlickrGroupsBrowseError_WriteOperationFailed = 106, /* The requested operation failed due to a temporary issue. */
FKFlickrStatsGetCollectionStats.h (https://gitlab.com/vicrius/flickrVisualizer) C Header · 55 lines
21 FKFlickrStatsGetCollectionStatsError_LoginFailedOrInvalidAuthToken = 98, /* The login details or auth token passed were invalid. */
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. */
25 FKFlickrStatsGetCollectionStatsError_WriteOperationFailed = 106, /* The requested operation failed due to a temporary issue. */
FKFlickrPhotosCommentsEditComment.m (https://gitlab.com/vicrius/flickrVisualizer) Objective C · 106 lines
82 case FKFlickrPhotosCommentsEditCommentError_UserNotLoggedInOrInsufficientPermissions:
83 return @"User not logged in / Insufficient permissions";
84 case FKFlickrPhotosCommentsEditCommentError_InvalidAPIKey:
85 return @"Invalid API Key";
86 case FKFlickrPhotosCommentsEditCommentError_ServiceCurrentlyUnavailable:
OAuthRequestAuthorizer.cs (https://github.com/samueldjack/ravendb.git) C# · 173 lines
11 public class OAuthRequestAuthorizer : AbstractRequestAuthorizer
12 {
13 public bool Authorize(IHttpContext ctx, bool hasApiKey)
14 {
15 var httpRequest = ctx.Request;
29 return true;
31 WriteAuthorizationChallenge(ctx, hasApiKey ? 412 : 401, "invalid_request", "The access token is required");
33 return false;
authorized_with_capture.yml (https://github.com/collectiveidea/tax_cloud.git) YAML · 63 lines
4 method: :post
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:
8 soapaction:
35 method: :post
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:
39 soapaction:
requests.go (https://gitlab.com/CORP-RESELLER/kubernetes) Go · 281 lines
PetApi.java (https://github.com/OpenAPITools/openapi-generator.git) Java · 240 lines
93 @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid pet value", response = Void.class) })
94 public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathParam("petId") @NotNull Long petId
95 ,@ApiParam(value = "" )@HeaderParam("api_key") String apiKey
96 ,@Context SecurityContext securityContext)
97 throws NotFoundException {
98 return delegate.deletePet(petId, apiKey, securityContext);
99 }
100 @GET
app_settings.html (https://gitlab.com/lileeyao/airnotifier.git) HTML · 269 lines
rails.feature (https://github.com/Sutto/airbrake.git) Gherkin Specification · 254 lines
8 And I configure the Airbrake shim
9 And I configure my application to require the "airbrake" gem
10 And I run the airbrake generator with "-k myapikey"
11 Then the command should have run successfully
12 And I should receive a Airbrake notification
18 And I configure my application to require the "airbrake" gem
19 And I unpack the "airbrake" gem
20 And I run the airbrake generator with "-k myapikey"
21 Then the command should have run successfully
22 When I uninstall the "airbrake" gem
29 When I generate a new Rails application
30 And I configure the Airbrake shim
31 And I configure the notifier to use "myapikey" as an API key
32 And I configure my application to require the "airbrake" gem
33 And I run the airbrake generator with ""
TransportCreateApiKeyAction.java (https://github.com/elasticsearch/elasticsearch.git) Java · 72 lines
16 import org.elasticsearch.xcontent.NamedXContentRegistry;
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;
22 import org.elasticsearch.xpack.core.security.authz.RoleDescriptor;
28 * Implementation of the action needed to create an API key
29 */
30 public final class TransportCreateApiKeyAction extends HandledTransportAction<CreateApiKeyRequest, CreateApiKeyResponse> {
32 private final ApiKeyGenerator generator;
37 TransportService transportService,
38 ActionFilters actionFilters,
39 ApiKeyService apiKeyService,
40 SecurityContext context,
41 CompositeRolesStore rolesStore,
MusixMatchPlugin.cpp (https://github.com/lfranchi/tomahawk.git) C++ · 158 lines
33 MusixMatchPlugin::MusixMatchPlugin()
34 : InfoPlugin()
35 , m_apiKey( "61be4ea5aea7dd942d52b2f1311dd9fe" )
36 {
37 tDebug() << Q_FUNC_INFO;
65 QUrl url( requestString );
67 TomahawkUtils::urlAddQueryItem( url, "apikey", m_apiKey );
68 TomahawkUtils::urlAddQueryItem( url, "q_artist", artist );
69 TomahawkUtils::urlAddQueryItem( url, "q_track", track );
126 QUrl url( requestString );
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;
227 public static Boolean operator != (APIKey_Id APIKeyIdId1,
228 APIKey_Id APIKeyIdId2)
230 => !APIKeyIdId1.Equals(APIKeyIdId2);
338 public override Boolean Equals(Object Object)
340 => Object is APIKey_Id apiKeyId &&
341 Equals(apiKeyId);
350 /// <param name="APIKeyId">An API key identification to compare with.</param>
351 /// <returns>True if both match; False otherwise.</returns>
352 public Boolean Equals(APIKey_Id APIKeyId)
354 => String.Equals(InternalId,
VectorBackgrounds.as (https://github.com/harry-wood/potlatch2.git) ActionScript · 135 lines
index.html (https://gitlab.com/betimbryma/SEPM-Ticketline) HTML · 87 lines
Uploader.js (https://github.com/rap1ds/hannotaatio.git) JavaScript · 132 lines
Task.php (https://github.com/ksecor/civicrm.git) PHP · 281 lines
OctopushTransport.php (https://github.com/FabienD/symfony.git) PHP · 97 lines
31 private string $userLogin;
32 private string $apiKey;
33 private string $from;
34 private string $type;
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;
41 $this->type = $type;
api.yaml (https://github.com/awslabs/realworld-serverless-application.git) YAML · 424 lines
Connection.cs (https://github.com/tjom/MIRPCADB.git) C# · 191 lines
ConfigApiController.php (git://github.com/vanillaforums/Garden.git) PHP · 217 lines
TestOfFlickrAPIAccessor.php (https://github.com/SimonCoopey/ThinkUp.git) PHP · 81 lines
Fakes.cs (https://github.com/ferventcoder/NuGetGallery.git) C# · 129 lines
26 Credentials = new List<Credential>() {
27 CredentialBuilder.CreatePbkdf2Password(Password),
28 CredentialBuilder.CreateV1ApiKey(Guid.Parse("519e180e-335c-491a-ac26-e83c4bd31d65"))
29 }
30 };
36 Credentials = new List<Credential>() {
37 CredentialBuilder.CreateSha1Password(Password),
38 CredentialBuilder.CreateV1ApiKey(Guid.Parse("b9704a41-4107-4cd2-bcfa-70d84e021ab2"))
39 }
40 };
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';
19 $version = 2; // the API version
21 $block_io = new BlockIo($apiKey, $pin, $version);
23 // create 4 keys for a 3 of 4 MultiSig address (1 key is Block.io's, added automatically by Block.io)
global_passportsetting.aspx.cs (https://github.com/Natsuwind/DeepInSummer.git) C# · 150 lines
27 if (!IsPostBack)
28 {
29 string apikey = DNTRequest.GetString("apikey");
30 if (apikey != "")
33 foreach (ApplicationInfo ai in aci.AppCollection)
34 {
35 if (ai.APIKey == apikey)
36 {
37 appname.Text = ai.AppName;
60 }
61 }
62 apikeyhidd.Value = apikey;
63 }
64 }
125 foreach (ApplicationInfo ai in aci.AppCollection)
126 {
127 if (ai.APIKey == apikeyhidd.Value)
128 {
129 ai.AppName = appname.Text;
TDUser.java (https://github.com/rodericj/TopDish.git) Java · 608 lines
112 */
113 @Persistent
114 private String ApiKey = UUID.randomUUID().toString();
116 /**
506 * Set the API Key
507 *
508 * @param apiKey
509 * - the API key to set
510 * @return the current user
511 */
512 public TDUser setApiKey(String apiKey) {
513 this.ApiKey = apiKey;
520 * @return user's api key
521 */
522 public String getApiKey() {
524 if (null == this.ApiKey)
SwagTextInputApi.cls (https://github.com/Cloudmersive/Cloudmersive.APIClient.Apex.Validate.git) Visual Basic for Applications · 230 lines
46 new List<String>{ 'application/json' },
47 new List<String>{ 'application/json' },
48 new List<String> { 'Apikey' },
49 SwagHtmlSsrfDetectionResult.class
50 );
73 new List<String>{ 'application/json' },
74 new List<String>{ 'application/json' },
75 new List<String> { 'Apikey' },
76 SwagSqlInjectionDetectionResult.class
77 );
97 new List<String>{ 'application/json' },
98 new List<String>{ 'application/json' },
99 new List<String> { 'Apikey' },
100 SwagSqlInjectionCheckBatchResponse.class
101 );
user.html (https://gitlab.com/rickmak/skygear-SDK-JS) HTML · 247 lines
ExecutionApi.md (https://github.com/bybit-exchange/api-connectors.git) Markdown · 157 lines
22 // Configure API key authorization: apiKey
23 var apiKey = defaultClient.authentications['apiKey'];
24 apiKey.apiKey = 'YOUR API KEY';
25 // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
26 //apiKey.apiKeyPrefix = 'Token';
28 // Configure API key authorization: apiSignature
96 apiKey.apiKey = 'YOUR API KEY';
97 // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
98 //apiKey.apiKeyPrefix = 'Token';
100 // Configure API key authorization: apiSignature
149 ### Authorization
151 [apiKey](../README.md#apiKey), [apiSignature](../README.md#apiSignature), [timestamp](../README.md#timestamp)
153 ### HTTP request headers
linear_conditional.clj (https://github.com/bybit-exchange/api-connectors.git) Clojure · 126 lines
15 :content-types ["application/x-www-form-urlencoded"]
16 :accepts ["application/json"]
17 :auth-names ["apiKey" "apiSignature" "timestamp"]})))
19 (defn linear-conditional-cancel
35 :content-types ["application/x-www-form-urlencoded"]
36 :accepts ["application/json"]
37 :auth-names ["apiKey" "apiSignature" "timestamp"]}))
39 (defn linear-conditional-cancel-all
54 :content-types ["application/json" "application/x-www-form-urlencoded"]
55 :accepts ["application/json"]
56 :auth-names ["apiKey" "apiSignature" "timestamp"]})))
58 (defn linear-conditional-get-orders
client.rb (https://github.com/macdiva/bitly.git) Ruby · 140 lines
10 # Requires a login and api key. Get yours from your account page at http://bit.ly/a/account
11 def initialize(login, api_key)
12 @default_query_opts = { :login => login, :apiKey => api_key }
13 end
15 # Validates a login and api key
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
19 end
33 # [domain] choose bit.ly or j.mp (bit.ly is default)
34 #
35 # [x_login and x_apiKey] add this link to another user's history (both required)
36 #
37 def shorten(long_url, opts={})
GroupDiscussInterface.java (https://gitlab.com/sugesk/flickr4java) Java · 238 lines
27 public static final String METHOD_REPLIES_GET_INFO = "flickr.groups.discuss.replies.getInfo";
29 private final String apiKey;
31 private final String sharedSecret;
35 public GroupDiscussInterface(String apiKey, String sharedSecret, Transport transportAPI) {
36 this.apiKey = apiKey;
37 this.sharedSecret = sharedSecret;
38 this.transportAPI = transportAPI;
66 }
68 Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret);
69 if (response.isError()) {
70 throw new FlickrException(response.getErrorCode(), response.getErrorMessage());
107 parameters.put("topic_id", topicId);
109 Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret);
110 if (response.isError()) {
111 throw new FlickrException(response.getErrorCode(), response.getErrorMessage());
messages.de.yml (https://gitlab.com/mktcode/widget-management-system) YAML · 70 lines
MapperDbTable.php (https://github.com/ArchiCroc/Tower-Web-Platform.git) PHP · 191 lines
JayCutter.cs (https://github.com/mpj/jaycut-dotnet-example.git) C# · 123 lines
23 public string JayCutApiSecret { get; set; }
24 public string JayCutUriAuthority { get; set; }
25 public string JayCutApiKey { get; set; }
27 /// <summary>
40 + command +
41 "?login=" + doLogin +
42 "&api_key=" + JayCutApiKey +
43 "&signature=" + ToSHA1Hash(signatureBase) +
44 "&expires=" + expires +
TemplateUpdate.java (https://github.com/lightbody/jcm.git) Java · 204 lines
19 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 * <sequence>
21 * <element name="ApiKey" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
22 * <element name="TemplateID" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
23 * <element name="TemplateName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
35 @XmlAccessorType(XmlAccessType.FIELD)
36 @XmlType(name = "", propOrder = {
37 "apiKey",
38 "templateID",
39 "templateName",
45 public class TemplateUpdate {
47 @XmlElement(name = "ApiKey")
48 protected String apiKey;
60 /**
61 * Gets the value of the apiKey property.
62 *
63 * @return
Form1.Designer.cs (https://github.com/lucadentella/AnalogDemo.git) C# · 207 lines
37 this.groupBox2 = new System.Windows.Forms.GroupBox();
38 this.cbSendData = new System.Windows.Forms.CheckBox();
39 this.tbAPIKey = new System.Windows.Forms.TextBox();
40 this.label1 = new System.Windows.Forms.Label();
41 this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart();
85 this.groupBox2.Controls.Add(this.label2);
86 this.groupBox2.Controls.Add(this.cbSendData);
87 this.groupBox2.Controls.Add(this.tbAPIKey);
88 this.groupBox2.Controls.Add(this.label1);
89 this.groupBox2.Location = new System.Drawing.Point(154, 275);
104 this.cbSendData.UseVisualStyleBackColor = true;
105 //
106 // tbAPIKey
107 //
108 this.tbAPIKey.Location = new System.Drawing.Point(57, 20);
109 this.tbAPIKey.Name = "tbAPIKey";
110 this.tbAPIKey.Size = new System.Drawing.Size(324, 20);
0002_auto__add_field_apilog_useragent__add_field_apilog_appver.py (https://github.com/alanhumphrey/OpenTreeMap.git) Python · 90 lines
30 models = {
31 'api.apikey': {
32 'Meta': {'object_name': 'APIKey'},
40 'api.apilog': {
41 'Meta': {'object_name': 'APILog'},
42 'apikey': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['api.APIKey']"}),
43 'appver': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
44 'date': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
New-SnipeitLicense.md (https://github.com/snazy2000/SnipeitPS.git) Markdown · 363 lines
18 [[-maintained] <Boolean>] [[-manufacturer_id] <Int32>] [[-notes] <String>] [[-order_number] <String>]
19 [[-purchase_cost] <Single>] [[-purchase_date] <DateTime>] [[-reassignable] <Boolean>] [[-serial] <String>]
20 [[-supplier_id] <Int32>] [[-termination_date] <DateTime>] [[-url] <String>] [[-apiKey] <String>] [-WhatIf]
21 [-Confirm] [<CommonParameters>]
22 ```
34 ## PARAMETERS
36 ### -apiKey
37 Deprecated parameter, please use Connect-SnipeitPS instead.
38 Users API Key for Snipeit.
ParserTumblr.php (https://github.com/Zeega/Zeega.git) PHP · 123 lines
OAuth2Manager.java (https://github.com/vilmospapp/liferay-portal.git) Java · 190 lines
FFN.cs (https://github.com/marcneuwirth/FantasyFootballNerdAPI.NET.git) C# · 195 lines
36 /// Your API Key given to you by registering at FantasyFootballNerd.com
37 /// </summary>
38 public string apiKey { get { return _ApiKey; } }
40 /// <summary>
46 /// Constructor
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;
100 DataSet xml = GetDataSet(request);
test_segment.py (git://github.com/campaignmonitor/createsend-python.git) Python · 114 lines
ServiceBuilder.java (https://github.com/jfelectron/LJPro.git) Java · 123 lines
16 public class ServiceBuilder
17 {
18 private String apiKey;
19 private String apiSecret;
20 private String callback;
73 * Configures the api key
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;
83 }
CronEventTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 215 lines
88 $appId = 'app_id';
89 $appName = 'app_name';
90 $insightApiKey = 'insert_key_value';
92 $this->model->addData(['eventType'=>'Cron']);
107 $this->configMock->expects($this->once())
108 ->method('getInsightsInsertKey')
109 ->willReturn($insightApiKey);
111 $this->configMock->expects($this->once())
149 $appId = 'app_id';
150 $appName = 'app_name';
151 $insightApiKey = 'insert_key_value';
153 $this->zendClientMock->expects($this->once())->method('setUri')->with($uri)->willReturnSelf();
10_basic.yml (https://github.com/imotov/elasticsearch.git) YAML · 381 lines
key_auth.class.php (https://bitbucket.org/frchico/chamilo_openshift.git) PHP · 262 lines
48 public static function create_temp_token($service = null, $duration = 60, $user_id = null)
49 {
50 return UserApiKeyManager::create_temp_token($service, $duration, $user_id);
51 }
114 public static function enable()
115 {
116 self::enable_services(UserApiKeyManager::default_service());
117 }
169 }
171 $key = UserApiKeyManager::get_by_id($token->get_id());
172 if (empty($key)) {
173 return false;
edit.js (https://github.com/TheThingsNetwork/lorawan-stack.git) JavaScript · 218 lines
46 static propTypes = {
47 /** The API key to be edited. */
48 apiKey: PropTypes.apiKey,
49 /**
50 * Called on key deletion. Receives the identifier of the API key as an
153 render() {
154 const { rights, apiKey, onEditFailure, pseudoRights } = this.props
155 const { error } = this.state
204 modalData={{
205 message: {
206 values: { keyName: apiKey.name ? `"${apiKey.name}"` : '' },
207 ...m.modalWarning,
208 },
users_access.go (https://github.com/TheThingsNetwork/lorawan-stack.git) Go · 216 lines
67 }
68 limit, page, opt, getTotal := withPagination(cmd.Flags())
69 res, err := ttnpb.NewUserAccessClient(is).ListAPIKeys(ctx, &ttnpb.ListUserAPIKeysRequest{
70 UserIdentifiers: *usrID, Limit: limit, Page: page,
71 }, opt)
139 return err
140 }
141 _, err = ttnpb.NewUserAccessClient(is).UpdateAPIKey(ctx, &ttnpb.UpdateUserAPIKeyRequest{
142 UserIdentifiers: *usrID,
143 APIKey: ttnpb.APIKey{
210 userAPIKeysUpdate.Flags().AddFlagSet(userRightsFlags)
211 userAPIKeys.AddCommand(userAPIKeysUpdate)
212 userAPIKeysDelete.Flags().String("api-key-id", "", "")
213 userAPIKeys.AddCommand(userAPIKeysDelete)
214 userAPIKeys.PersistentFlags().AddFlagSet(userIDFlags())
sp.resource.directory_test.js (https://gitlab.com/DinaMorad1/NodeTraining) JavaScript · 334 lines
BitLyShortenRequest.as (https://github.com/duponce/as3.git) ActionScript · 141 lines
22 // Properties
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;
53 vars["format"] = "xml";
55 // http://code.google.com/p/bitly-api/wiki/ApiDocumentation
56 // Missing: .domain, .x_login, .x_apiKey
58 req.data = vars;
ApiKeyInitializer.java (https://gitlab.com/adam.lukaitis/iosched) Java · 94 lines
34 * {@code WEB-INF/classes}).
35 */
36 public class ApiKeyInitializer implements ServletContextListener {
38 public static final String API_KEY = "<ENTER_YOUR_KEY>";
40 public static final String ATTRIBUTE_ACCESS_KEY = "apiKey";
42 private static final String ENTITY_KIND = "Settings";
43 private static final String ENTITY_KEY = "MyKey";
44 private static final String ACCESS_KEY_FIELD = "ApiKey";
46 private final Logger mLogger = Logger.getLogger(getClass().getName());
BuildPackages.ps1 (https://gitlab.com/0072016/dotnet-corex) Powershell · 171 lines
12 # The API key to use during publishing.
13 [string]$apiKey,
15 # The Azure account to use.
168 foreach ($package in $packages) {
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 }
MNMessageCodes.h (https://github.com/alexgeorgescu/IPhonePlayphoneSDK.git) C Header · 65 lines
16 MNMessageCodeInvalidPlayerStatusValueError,
17 MNMessageCodeYouMustNotBeInGamePlayToUseFacebookConnectError,
18 MNMessageCodeFacebookAPIKeyOrSessionProxyURLIsInvalidOrNotSetError,
19 MNMessageCodeUndefinedActionURLErrorFormat,
20 MNMessageCodeInvalidUserIdInLoginMultiNetUserIdAndPhashModeInternalError,
errors.go (https://github.com/alibaba/terraform-provider.git) Go · 408 lines
PetApi.cs (https://gitlab.com/akkhil2012/swagger-codegen) C# · 212 lines
144 /// <remarks></remarks>
145 /// <param name="petId">Pet id to delete</param>
146 /// <param name="apiKey"></param>
147 /// <response code="400">Invalid pet value</response>
148 [HttpDelete]
149 [Route("/pet/{petId}")]
150 [SwaggerOperation("DeletePet")]
151 public void DeletePet([FromRoute]long? petId, [FromHeader]string apiKey)
152 {
153 throw new NotImplementedException();
elementindex_GoogleTranslateWrapper.html (https://github.com/quimateur/SIFO.git) HTML · 212 lines
34 <td> <strong>$_apiKey</strong></td>
35 <td width="100%" align="left" valign="top">in file googleTranslate.class.php, variable <a href="GoogleTranslateWrapper/GoogleTranslateWrapper.html#var$_apiKey">GoogleTranslateWrapper::$_apiKey</a><br> Google API key</td>
36 </tr>
37 <tr>
Client.cs (https://github.com/kamaldeep/net-api-wrapper-with-source.git) C# · 133 lines
7 public class Client
8 {
9 public static Result<string> Create(string apiKey, string companyName, string contactName, string emailAddress, string country, string timezone)
10 {
11 CampaignMonitorAPIWrapper.CampaignMonitorAPI.api _api = new CampaignMonitorAPI.api();
13 object o = _api.CreateClient(apiKey, companyName, contactName, emailAddress, country, timezone);
15 if (o is CampaignMonitorAPI.Result)
19 }
21 public static Result<string> UpdateBasics(string apiKey, string clientID, string companyName, string contactName, string emailAddress, string country, string timezone)
22 {
23 CampaignMonitorAPIWrapper.CampaignMonitorAPI.api _api = new CampaignMonitorAPI.api();
DeleteApiKeyConverter.java (https://github.com/oracle/oci-java-sdk.git) Java · 113 lines
13 @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918")
14 @lombok.extern.slf4j.Slf4j
15 public class DeleteApiKeyConverter {
16 private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory
17 RESPONSE_CONVERSION_FACTORY =
18 new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory();
20 public static com.oracle.bmc.identity.requests.DeleteApiKeyRequest interceptRequest(
21 com.oracle.bmc.identity.requests.DeleteApiKeyRequest request) {
26 public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest(
27 com.oracle.bmc.http.internal.RestClient client,
28 com.oracle.bmc.identity.requests.DeleteApiKeyRequest request) {
29 Validate.notNull(request, "request instance is required");
30 Validate.notBlank(request.getUserId(), "userId must not be blank");
38 com.oracle.bmc.util.internal.HttpUtils.encodePathSegment(
39 request.getUserId()))
40 .path("apiKeys")
41 .path(
42 com.oracle.bmc.util.internal.HttpUtils.encodePathSegment(
h2_baseline.sql (https://github.com/hferentschik/zanata.git) SQL · 485 lines
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');
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
86 // $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
CustomVisionPredictionManager.java (git://github.com/WindowsAzure/azure-sdk-for-java.git) Java · 77 lines
30 *
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 */
46 *
47 * @param credentials the management credentials for Azure
48 * @param apiKey the Custom Vision Prediction API key
49 * @return the Computer Vision API client
50 */
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 }
77 }
user.properties (https://github.com/jeisberg/user_service.git) Properties File · 211 lines
206 # lockerz authentications
207 authorizer.apiKey=A1234567890B
209 # authenticate endpoint
210 authenticate.endpoint=http://localhost:8080/user-1.0-SNAPSHOT/user/login/?apiKey={apiKey}&username={username}&password={password}&remoteIp={remoteIp}
211 profile.endpoint=http://localhost:8080/user-1.0-SNAPSHOT/user/profile/?apiKey={apiKey}&token={token}
Parser.php (https://github.com/dmillen/Swiftriver.git) PHP · 121 lines
8 *
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
15 $jsonReadyItems = array();
25 //Add the json header information
26 $object->key = $apiKey;
28 //Add the content item dtos