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 {

42

43 return _powwowServerLocalService.addPowwowServer(

44 userId, name, providerType, url, apiKey, secret, serviceContext);

45 }

46

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 """

38

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 """

59

60 self._apiKey = apiKey

61 self._cache = cache

62 self._api = PoolManager(timeout=WeatherUnderground.QUERY_TIMEOUT)

325 """

326

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

328

329 try:

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

66 * @access private

67 */

68 private $_apiKey;

69

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

3

4 defaults do

5 params :apikey => TransparencyData.api_key

6 end

7

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

179 static SettingsEntryEnum modifierNumberScrollWheel;

180 static SettingsEntryString octoPrintUrl;

181 static SettingsEntryString octoPrintApiKey;

182 static SettingsEntryEnum octoPrintFileFormat;

183 static SettingsEntryEnum octoPrintAction;

flurryWithLocation.cs (https://github.com/playdough/monotouch-libs.git) C# · 161 lines

36 void SetShowErrorInLogEnabled (bool value);

37

38 //+ (void)unlockDebugMode:(NSString*)debugModeKey apiKey:(NSString *)apiKey;

39 [Static, Export ("unlockDebugMode:apiKey:")]

40 void UnlockDebugMode (string debugModeKey, string apiKey);

41

42 //+ (void)setPauseSecondsBeforeStartingNewSession:(int)seconds;

44 void SetPauseSecondsBeforeStartingNewSession (int seconds);

45

46 //+ (void)startSession:(NSString *)apiKey;

47 [Static, Export ("startSession:")]

48 void StartSession (string apiKey);

128 void SetAppCircleDelegate (IntPtr appCircleDelegate);

129

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)

55

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()

74

models.py (https://github.com/ziadsawalha/keystone.git) Python · 187 lines

158 user_id = Column(Integer, ForeignKey('users.id'))

159 tenant_id = Column(Integer, ForeignKey('tenants.id'), nullable=True)

160 type = Column(String(20)) # ('Password','APIKey','EC2')

161 key = Column(String(255))

162 secret = Column(String(255))

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

138 // Gather the new configuration bits from the UI.

139 cdi.Name = cf.configurationNameEntry.Text;

140 cdi.APIKey = cf.apiKeyEntry.Text;

141 cdi.WatchPath = cf.selectedFolder.Text;

142 cdi.PostURL = cf.zaaksysteemUrlEntry.Text;

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 }

178

179 public Builder apiKey(String apiKey) {

180 instance.setApiKey(apiKey);

PetApi.md (https://github.com/OpenAPITools/openapi-generator.git) Markdown · 379 lines

63

64 # **deletePet**

65 > deletePet(petId, apiKey)

66

67 Deletes a pet

75 var api_instance = PetApi();

76 var petId = 789; // int | Pet id to delete

77 var apiKey = apiKey_example; // String |

78

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;

74

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

56 $this->properties['last_update_date'] = new owa_dbColumn;

57 $this->properties['last_update_date']->setDataType(OWA_DTD_BIGINT);

58 $apiKey = new owa_dbColumn;

59 $apiKey->setName('api_key');

60 $apiKey->setDataType(OWA_DTD_VARCHAR255);

61 $this->setProperty($apiKey);

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

49

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

51 apikey=sysadmin['apikey'])

52

53 def test_user_cannot_create_group_when_config_is_False(self):

56

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

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

59

60 def test_visitor_cannot_create_group_when_config_is_False(self):

69

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

71 apikey=sysadmin['apikey'])

72

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

56 @Autowired

57 public TelegramAPI(BotProperties botProperties) {

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

59 }

60

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

134

135 /**

136 * Test attribute "apiKeys"

137 */

138 public function testPropertyApiKeys()

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;

47

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 }

75

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

77

78 /** @var Character $character */

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

302 - cd ..

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

306

AlterReplicaLogDirsResponse.java (https://github.com/linkedin/kafka.git) Java · 146 lines

19

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);

137

138 public static AlterReplicaLogDirsResponse parse(ByteBuffer buffer, short version) {

139 return new AlterReplicaLogDirsResponse(ApiKeys.ALTER_REPLICA_LOG_DIRS.responseSchema(version).read(buffer));

140 }

141

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

110 public void loginToGallery() throws ImpossibleToLoginException {

111 try {

112 client.getApiKey();

113 } catch (G3GalleryException e) {

114 throw new ImpossibleToLoginException(e);

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

61

62 [ApiKey](../README.md#ApiKey)

63

64 ### HTTP request headers

183 // Configure API key authorization: ApiKey

184 let ApiKey = defaultClient.authentications['ApiKey'];

185 ApiKey.apiKey = 'YOUR API KEY';

386 ### Authorization

387

388 [ApiKey](../README.md#ApiKey)

389

390 ### HTTP request headers

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

69 // Initialize the CouchPotat API

70 couch = new CouchApi();

71 couch.ApiKey = "7c9fad341b764a5f8c4781c76f3cbc24";

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

73 couch.Port = "5050";

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

12

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'])

22

23

24 def backwards(self, orm):

25 # Deleting model 'ApiKey'

26 db.delete_table(u'api_apikey')

28

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 }

333

334 async Task<string> GetStopForumSpamApiKeyAsync()

335 {

336 // Get spam settings

344

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

2

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;

28

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 }

48

49 self::$apiKey = $apiKey;

50 }

51

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

11 open net.openstack.Providers.Rackspace

12

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

14 let region : string = null

15 let clientId = Guid.NewGuid()

FBSession.h (https://github.com/neojjang/MIT-Mobile-for-iPhone.git) C Header · 203 lines

34 @interface FBSession : NSObject {

35 NSMutableArray* _delegates;

36 NSString* _apiKey;

37 NSString* _apiSecret;

38 NSString* _getSessionProxy;

65 * Your application's API key, as passed to the constructor.

66 */

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

68

69 /**

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

75

76

77 class ApiKeyAuthenticationTestCase(TestCase):

78 fixtures = ['note_testdata.json']

79

80 def setUp(self):

81 super(ApiKeyAuthenticationTestCase, self).setUp()

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

83

84 def test_is_authenticated(self):

85 auth = ApiKeyAuthentication()

86 request = HttpRequest()

87

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;

43

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");

56

57 exception.expect(ConfigException.class);

65 Config config = newConfig()

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

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

68

69 exception.expect(ConfigException.class);

72

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

34

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

34

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

24 export default class YouTube extends React.Component {

25 static propTypes = {

26 apiKey: PropTypes.string.isRequired,

27 videoId: PropTypes.string,

28 videoIds: PropTypes.arrayOf(PropTypes.string),

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

59 'django.contrib.auth.middleware.AuthenticationMiddleware',

60 'django.middleware.cache.FetchFromCacheMiddleware',

61 'locksmith.auth.middleware.APIKeyMiddleware',

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

63 )

base.php (https://github.com/cindyli/ATutor.git) PHP · 141 lines

44 }

45

46 function missingApiKeyWarning()

47 {

48 $ret = "

120 }

121

122 function setClientCredentialsFile($apiKey)

123 {

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

135 }

136

137 function setApiKey($apiKey)

138 {

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

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

79 .apiMetadata(new NovaApiMetadata().toBuilder()

80 .identityName("${userName}")

81 .credentialName("${apiKey}")

82 .version("2")

83 .defaultEndpoint("https://lon.identity.api.rackspacecloud.com/v2.0/")

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;

30

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

32

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

74

75 // Test first for unrecognized arguments.

76 if options.APIKey != "" {

77 return createErr(ErrAPIKeyProvided)

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

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>

178 </div>

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> {

31

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 );

66

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 );

127

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

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

130

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)

229

230 => !APIKeyIdId1.Equals(APIKeyIdId2);

338 public override Boolean Equals(Object Object)

339

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)

353

354 => String.Equals(InternalId,

VectorBackgrounds.as (https://github.com/harry-wood/potlatch2.git) ActionScript · 135 lines

90

91 case "BugLoader":

92 if (set.url && set.apiKey) {

93 name ||= 'Bugs';

94 var bugLoader:BugLoader = new BugLoader(_map, String(set.url), String(set.apikey), name, String(set.details));

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

54 });

55

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

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

59 if(key && key.trim() != "") {

60 log("added key " + key);

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

62 }

63 })

Uploader.js (https://github.com/rap1ds/hannotaatio.git) JavaScript · 132 lines

72 */

73 Uploader.prototype.uploadForm = function(capturer) {

74 var annotations_url = this.prefs.api_url + 'annotations/' + '?api_key=' + this.prefs.apiKey;

75 var uuid = capturer.uuid;

76 var annotationMetadata = capturer.getAnnotationMetadata();

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

148 $config =& CRM_Core_Config::singleton( );

149

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

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

152 'class' => 'CRM_Contact_Form_Task_Map',

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

30

31 private string $userLogin;

32 private string $apiKey;

33 private string $from;

34 private string $type;

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;

41 $this->type = $type;

api.yaml (https://github.com/awslabs/realworld-serverless-application.git) YAML · 424 lines

304 securitySchemes:

305 cognitoAuthorizer:

306 type: apiKey

307 name: Authorization

308 in: header

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

47 string timestamp = Utilities.DateTimeToUTCTimestamp(DateTime.Now).ToString();

48 p["t"] = timestamp;

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

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

51 p["a"] = Utilities.md5(authenticatedSession.APISecret + timestamp);

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

130 $in = $this->getConfigSchema();

131

132 // ApiKey => ConfigKey

133 $propertyMapping = [];

134 // Make sure the user has all necessary permissions.

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

44 }

45

46 public function testGetFlickrPhotoSourceNoFlickrAPIKey() {

47 $logger = Logger::getInstance();

48 $flickr_api = new FlickrAPIAccessor('', $logger);

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

20

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

22

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();

115

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() {

523

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

117 skygear.config({

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

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

120 }).then(function(container) {

121 m.textContent = container.endPoint;

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';

27

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';

99

100 // Configure API key authorization: apiSignature

149 ### Authorization

150

151 [apiKey](../README.md#apiKey), [apiSignature](../README.md#apiSignature), [timestamp](../README.md#timestamp)

152

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"]})))

18

19 (defn linear-conditional-cancel

35 :content-types ["application/x-www-form-urlencoded"]

36 :accepts ["application/json"]

37 :auth-names ["apiKey" "apiSignature" "timestamp"]}))

38

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"]})))

57

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

14

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";

28

29 private final String apiKey;

30

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 }

67

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);

108

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

63 install.cache.lifetime: Cache Gültigkeit (in Sekunden)

64 install.locale: Sprache

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

66 install.facebook.app_id: Facebook App ID

67 install.facebook.app_secret: Facebook App Secret

MapperDbTable.php (https://github.com/ArchiCroc/Tower-Web-Platform.git) PHP · 191 lines

2

3 /*

4 * ApikeyMapperDbTable.php

5 *

6 * Copyright (c) 2011 Matthew Doll <mdoll at homenet.me>.

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; }

26

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 * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">

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"/>

23 * &lt;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 {

46

47 @XmlElement(name = "ApiKey")

48 protected String apiKey;

59

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

29

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

35

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

16 $postId = $regexMatches[2];

17 # API key should be moved into a conf file

18 $apiKey = "F7zV5AJ9F5I2oKPydkeDcIRydMMm5iiyX3By8Mir6sjMZFpbFv";

19 $apiCallUrl = "http://api.tumblr.com/v2/blog/" . $blogHostname . "/posts?api_key=" . $apiKey . "&id=" . $postId;

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

128 ).withScope(

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

130 ).apiKey(

131 dlOneDriveCompanyConfiguration.clientId()

132 );

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; } }

39

40 /// <summary>

46 /// Constructor

47 /// </summary>

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

49 public FFN(string ApiKey)

50 {

51 this._ApiKey = ApiKey;

52 }

53

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

98 _FFN, _Players, _ApiKey)) as HttpWebRequest;

99

100 DataSet xml = GetDataSet(request);

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

106

107

108 class ApiKeySegmentTestCase(unittest.TestCase, SegmentTestCase):

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

110

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';

91

92 $this->model->addData(['eventType'=>'Cron']);

107 $this->configMock->expects($this->once())

108 ->method('getInsightsInsertKey')

109 ->willReturn($insightApiKey);

110

111 $this->configMock->expects($this->once())

149 $appId = 'app_id';

150 $appName = 'app_name';

151 $insightApiKey = 'insert_key_value';

152

153 $this->zendClientMock->expects($this->once())->method('setUri')->with($uri)->willReturnSelf();

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

118 - do:

119 headers:

120 Authorization: ApiKey ${login_creds}

121 security.authenticate: {}

122

327 - do:

328 headers:

329 Authorization: ApiKey ${login_creds}

330 security.has_privileges:

331 user: null

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 }

52

114 public static function enable()

115 {

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

117 }

118

169 }

170

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

152

153 render() {

154 const { rights, apiKey, onEditFailure, pseudoRights } = this.props

155 const { error } = this.state

156

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

15 describe('Resources: ', function () {

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

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

18

19 describe('get accounts', function () {

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;

26

49

50 vars["login"] = login;

51 vars["apiKey"] = apiKey;

52 vars["longUrl"] = longURL;

53 vars["format"] = "xml";

54

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

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

57

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 {

37

38 public static final String API_KEY = "<ENTER_YOUR_KEY>";

39

40 public static final String ATTRIBUTE_ACCESS_KEY = "apiKey";

41

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";

45

46 private final Logger mLogger = Logger.getLogger(getClass().getName());

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

11

12 # The API key to use during publishing.

13 [string]$apiKey,

14

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 }

172

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

288 }

289

290 // ErrAPIKeyProvided indicates that an APIKey was provided but can't be used.

291 type ErrAPIKeyProvided struct{ BaseError }

292

293 func (e ErrAPIKeyProvided) Error() string {

294 return unacceptedAttributeErr("APIKey")

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>&nbsp;&nbsp;&nbsp;<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>&nbsp;&nbsp;&nbsp;&nbsp;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();

12

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

14

15 if (o is CampaignMonitorAPI.Result)

19 }

20

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();

19

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

9 lastChanged timestamp not null,

10 versionNum integer not null,

11 apiKey varchar(32),

12 enabled bit not null,

13 passwordHash varchar(255),

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

22

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');

82

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 }

66

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

205

206 # lockerz authentications

207 authorizer.apiKey=A1234567890B

208

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();

24

25 //Add the json header information

26 $object->key = $apiKey;

27

28 //Add the content item dtos