100+ results for 'apikey'
Not the results you expected?
weather_underground.py (https://gitlab.com/cburki/python_wunderground) Python · 361 lines
39 URL = 'http://api.wunderground.com/api/{apikey}/{features}/q/{location}.json'
40 QUERY_TIMEOUT = 30
50 def __init__(self, apiKey, cache):
51 """
54 :param apiKey: The weather underground API key
55 :type apiKey: string
60 self._apiKey = apiKey
61 self._cache = cache
327 url = WeatherUnderground.URL.format(apikey=self._apiKey, features=features, location=location)
Settings.h (https://github.com/openscad/openscad.git) C Header · 283 lines
fingerprinting.py (https://github.com/lalinsky/picard.git) Python · 144 lines
40 config.TextOption("setting", "acoustid_fpcalc", ""),
41 config.TextOption("setting", "acoustid_apikey", ""),
42 ]
53 self.ui.acoustid_fpcalc_download.clicked.connect(self.acoustid_fpcalc_download)
54 self.ui.acoustid_apikey_get.clicked.connect(self.acoustid_apikey_get)
61 self.ui.acoustid_fpcalc.setText(config.setting["acoustid_fpcalc"])
62 self.ui.acoustid_apikey.setText(config.setting["acoustid_apikey"])
63 self.ui.ignore_existing_acoustid_fingerprints.setChecked(config.setting["ignore_existing_acoustid_fingerprints"])
71 config.setting["acoustid_fpcalc"] = unicode(self.ui.acoustid_fpcalc.text())
72 config.setting["acoustid_apikey"] = unicode(self.ui.acoustid_apikey.text())
73 config.setting["ignore_existing_acoustid_fingerprints"] = self.ui.ignore_existing_acoustid_fingerprints.isChecked()
95 def acoustid_apikey_get(self):
96 webbrowser2.goto('acoustid_apikey')
impermium.php (https://github.com/PopSugar/Impermium-PHP.git) PHP · 449 lines
67 */
68 private $_apiKey;
111 public function __construct($api_key, $api_host=self::API_HOST, $api_version=self::API_VERSION) {
112 $this->_apiKey = $api_key;
113 $this->_apiHost = $api_host;
126 private function _buildUrl($type, $action, $event_id) {
127 $url = sprintf('http://%s/%s/%s/%s/%s/%s', $this->_apiHost, $type, $action, $this->_apiVersion, $this->_apiKey, $event_id);
128 return $url;
182 */
183 public function getApiKey() {
184 return $this->_apiKey;
193 */
194 public function setApiKey($api_key) {
195 $this->_apiKey = $api_key;
DetailInvoker.java (https://github.com/lolay/citygrid-java-old.git) Java · 213 lines
42 private String publisher = null;
43 private String apiKey = null;
44 private Boolean customerOnly = null;
79 }
80 public String getApiKey() {
81 return apiKey;
82 }
83 public void setApiKey(String apiKey) {
84 this.apiKey = apiKey;
139 .phone(prototype.getPhone()).publisher(prototype.getPublisher())
140 .apiKey(prototype.getApiKey()).customerOnly(prototype.getCustomerOnly())
141 .allResults(prototype.getAllResults()).reviewCount(prototype.getReviewCount())
179 public Builder apiKey(String apiKey) {
180 instance.setApiKey(apiKey);
elementindex.html (https://github.com/eXeDK/VirusTotal-API-PHP-class.git) HTML · 243 lines
81 <dt class="field">
82 <span class="method-title">getApiKey</span>
83 </dt>
84 <dd class="index-item-body">
85 <div class="index-item-details"><a href="default/VirusTotal.html#methodgetApiKey">VirusTotal::getApiKey()</a> in VirusTotal.php</div>
86 <div class="index-item-description">Getter for the API-key</div>
159 <dt class="field">
160 <span class="method-title">setApiKey</span>
161 </dt>
162 <dd class="index-item-body">
163 <div class="index-item-details"><a href="default/VirusTotal.html#methodsetApiKey">VirusTotal::setApiKey()</a> in VirusTotal.php</div>
164 <div class="index-item-description">Setter for the API-key</div>
Account.php (https://gitlab.com/Blueprint-Marketing/dyn-php) PHP · 796 lines
72 */
73 protected $apiKey;
155 ->setCreated($json->created)
156 ->setApiKey($json->apikey)
157 ->setTimeZone($json->timezone)
212 'trackunsubscribes' => $this->getTrackUnsubscribes() ? '1' : '0',
213 'generatenewapikey' => '0', // TODO
214 );
495 */
496 public function setApiKey($apiKey)
497 {
498 $this->apiKey = $apiKey;
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'])
57 tests.call_action_api(app, 'group_create', name='test-group',
58 apikey=user['apikey'], status=403)
70 tests.call_action_api(app, 'group_create', name='test-group',
71 apikey=sysadmin['apikey'])
77 tests.call_action_api(app, 'group_create', name='test-group',
78 apikey=user['apikey'])
135 curators_group = tests.call_action_api(self.app, 'group_create',
136 apikey=sysadmin['apikey'],
137 name='curators',
AlbumApi.php (https://github.com/matto1990/PHP-Last.fm-API.git) PHP · 270 lines
47 'method' => 'album.addtags',
48 'api_key' => $this->getAuth()->apiKey,
49 'sk' => $this->getAuth()->sessionKey
82 'method' => 'album.getinfo',
83 'api_key' => $this->getAuth()->apiKey
84 );
143 'method' => 'album.gettags',
144 'api_key' => $this->getAuth()->apiKey,
145 'sk' => $this->getAuth()->sessionKey
192 'method' => 'album.removetag',
193 'api_key' => $this->getAuth()->apiKey,
194 'sk' => $this->getAuth()->sessionKey
226 'method' => 'album.search',
227 'api_key' => $this->getAuth()->apiKey
228 );
Geo.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 162 lines
30 * @param distance Find events within a specified distance
31 * @param apiKey A Last.fm API key.
32 * @return a list containing all events
33 */
34 public static Collection<Event> getAllEvents(String location, String distance, String apiKey) {
35 Collection<Event> events = null;
37 do {
38 PaginatedResult<Event> result = getEvents(location, distance, page, apiKey);
39 total = result.getTotalPages();
60 * @param distance Find events within a specified distance
61 * @param apiKey A Last.fm API key.
62 * @return a {@link PaginatedResult} containing a list of events
63 */
64 public static PaginatedResult<Event> getEvents(String location, String distance, String apiKey) {
65 return getEvents(location, distance, 1, apiKey);
Library.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 257 lines
26 * @param user The user whose library you want to fetch.
27 * @param apiKey A Last.fm API key.
28 * @return a {@link PaginatedResult} of the artists
29 */
30 public static PaginatedResult<Artist> getArtists(String user, String apiKey) {
31 return getArtists(user, 1, 0, apiKey);
38 * @param page The page number you wish to scan to.
39 * @param apiKey A Last.fm API key.
40 * @return a {@link PaginatedResult} of the artists
41 */
42 public static PaginatedResult<Artist> getArtists(String user, int page, String apiKey) {
43 return getArtists(user, page, 0, apiKey);
51 * @param limit Limit the amount of artists returned (maximum/default is 50).
52 * @param apiKey A Last.fm API key.
53 * @return a {@link PaginatedResult} of the artists
GetChildInfoTest.php (https://gitlab.com/i-have-a-green/digitemis-v3) PHP · 141 lines
base.php (https://gitlab.com/crsr/google-api-php-client) PHP · 141 lines
com.metinkale.prayer.yml (https://gitlab.com/luelista/fdroiddata) YAML · 313 lines
DesignMovieService.cs (https://github.com/blackjid/CouchPotatoWp7.git) C# · 77 lines
middleware_ip_whitelist_test.go (https://gitlab.com/jjae2124/tyk) Go · 382 lines
163 thisSpec := createDefinitionFromString(apiTestDef)
164 redisStore := RedisStorageManager{KeyPrefix: "apikey-"}
165 healthStore := &RedisStorageManager{KeyPrefix: "apihealth."}
183 spec := MakeIPSampleAPI(ipMiddlewareTestDefinitionEnabledFail)
184 redisStore := RedisStorageManager{KeyPrefix: "apikey-"}
185 healthStore := &RedisStorageManager{KeyPrefix: "apihealth."}
212 spec := MakeIPSampleAPI(ipMiddlewareTestDefinitionEnabledPass)
213 redisStore := RedisStorageManager{KeyPrefix: "apikey-"}
214 healthStore := &RedisStorageManager{KeyPrefix: "apihealth."}
241 spec := MakeIPSampleAPI(ipMiddlewareTestDefinitionEnabledPass)
242 redisStore := RedisStorageManager{KeyPrefix: "apikey-"}
243 healthStore := &RedisStorageManager{KeyPrefix: "apihealth."}
270 spec := MakeIPSampleAPI(ipMiddlewareTestDefinitionEnabledPass)
271 redisStore := RedisStorageManager{KeyPrefix: "apikey-"}
272 healthStore := &RedisStorageManager{KeyPrefix: "apihealth."}
TelegramAPI.java (https://gitlab.com/plotnikau/telebotapi) Java · 251 lines
0001_initial.py (https://gitlab.com/asmjahid/opps) Python · 62 lines
13 def forwards(self, orm):
14 # Adding model 'ApiKey'
15 db.create_table(u'api_apikey', (
20 ))
21 db.send_create_signal(u'api', ['ApiKey'])
24 def backwards(self, orm):
25 # Deleting model 'ApiKey'
26 db.delete_table(u'api_apikey')
29 models = {
30 u'api.apikey': {
31 'Meta': {'object_name': 'ApiKey'},
event.php (https://gitlab.com/matt-oakes/Online-Lastfm-Player) PHP · 294 lines
52 'method' => 'event.attend',
53 'api_key' => $this->auth->apiKey,
54 'sk' => $this->auth->sessionKey
89 'method' => 'event.getattendees',
90 'api_key' => $this->auth->apiKey
91 );
130 'method' => 'event.getinfo',
131 'api_key' => $this->auth->apiKey
132 );
186 'method' => 'event.getshouts',
187 'api_key' => $this->auth->apiKey
188 );
226 'method' => 'event.share',
227 'api_key' => $this->auth->apiKey,
228 'sk' => $this->auth->sessionKey
RecommendationsAI.php (https://gitlab.com/Japang-Jawara/jawara-penilaian) PHP · 449 lines
50 public $projects_locations_catalogs_eventStores_placements;
51 public $projects_locations_catalogs_eventStores_predictionApiKeyRegistrations;
52 public $projects_locations_catalogs_eventStores_userEvents;
260 );
261 $this->projects_locations_catalogs_eventStores_predictionApiKeyRegistrations = new RecommendationsAI\Resource\ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrations(
262 $this,
263 $this->serviceName,
264 'predictionApiKeyRegistrations',
265 [
267 'create' => [
268 'path' => 'v1beta1/{+parent}/predictionApiKeyRegistrations',
269 'httpMethod' => 'POST',
287 ],'list' => [
288 'path' => 'v1beta1/{+parent}/predictionApiKeyRegistrations',
289 'httpMethod' => 'GET',
ContactsFacade.php (https://gitlab.com/kubiq/eveblues) PHP · 153 lines
6 use EveBlues\Model\Alliance\AlliancesRepository;
7 use EveBlues\Model\ApiKey\ApiKey;
8 use EveBlues\Model\ApiKey\ApiKeysRepository;
26 private $labelsRepository;
27 /** @var ApiKeysRepository */
28 private $apiKeysRepository;
48 public function __construct(
49 ApiKeysRepository $apiKeysRepository,
50 AlliancesRepository $alliancesRepository,
63 $this->labelsRepository = $labelsRepository;
64 $this->apiKeysRepository = $apiKeysRepository;
65 $this->charactersRepository = $charactersRepository;
76 public function getContacts(User $owner, ApiKey $apiKey, int $characterId) :Character {
QueueingServiceExamples.fs (https://gitlab.com/rekby-archive/onlyoffice-CommunityServer) F# · 121 lines
authentication.py (https://github.com/johncosta/django-jcosta-tastypie.git) Python · 166 lines
5 from django.test import TestCase
6 from tastypie.authentication import Authentication, BasicAuthentication, ApiKeyAuthentication, DigestAuthentication
7 from tastypie.http import HttpUnauthorized
8 from tastypie.models import ApiKey, create_api_key
77 class ApiKeyAuthenticationTestCase(TestCase):
78 fixtures = ['note_testdata.json']
80 def setUp(self):
81 super(ApiKeyAuthenticationTestCase, self).setUp()
82 ApiKey.objects.all().delete()
84 def test_is_authenticated(self):
85 auth = ApiKeyAuthentication()
86 request = HttpRequest()
FlickrRestStore.js (https://github.com/eladmeidar/EngineY.git) JavaScript · 476 lines
34 userid: "44153025@N00",
35 apikey: "8c6803164dbc395fb7131c9d54843627"
36 },
70 userid: "44153025@N00",
71 apikey: "8c6803164dbc395fb7131c9d54843627"
72 },
148 userid: "44153025@N00",
149 apikey: "8c6803164dbc395fb7131c9d54843627"
150 },
178 userid: "44153025@N00",
179 apikey: "8c6803164dbc395fb7131c9d54843627"
180 },
209 userid: "44153025@N00",
210 apikey: "8c6803164dbc395fb7131c9d54843627"
211 },
TDOperatorTest.java (https://gitlab.com/github-cloud-corp/digdag) Java · 203 lines
54 .set("database", "")
55 .set("apikey", "foobar");
66 .set("database", " \t\n")
67 .set("apikey", "foobar");
73 @Test
74 public void verifyEmptyApiKeyParameterIsRejected()
75 throws Exception
78 .set("database", "foobar")
79 .set("apikey", "");
85 @Test
86 public void verifyWhitespaceApiKeyParameterIsRejected()
87 throws Exception
Method.cs (https://gitlab.com/CORP-RESELLER/aws-sdk-net) C# · 201 lines
34 {
35 private bool? _apiKeyRequired;
36 private string _authorizationType;
44 /// <summary>
45 /// Gets and sets the property ApiKeyRequired.
46 /// <para>
47 /// Specifies whether the method requires a valid <a>ApiKey</a>.
48 /// </para>
49 /// </summary>
50 public bool ApiKeyRequired
51 {
52 get { return this._apiKeyRequired.GetValueOrDefault(); }
53 set { this._apiKeyRequired = value; }
settings.py (https://github.com/runderwood/openstates.git) Python · 97 lines
GetChildInfoApiKeysV3.php (https://gitlab.com/i-have-a-green/digitemis-v3) PHP · 337 lines
GetChildInfoApiKeysV2.php (https://gitlab.com/i-have-a-green/digitemis-v3) PHP · 337 lines
authorized_with_capture.yml (https://github.com/collectiveidea/tax_cloud.git) YAML · 63 lines
5 uri: https://api.taxcloud.net:443/1.0/TaxCloud.asmx
6 body: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://taxcloud.net" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="http://taxcloud.net"><env:Body><ins0:Lookup><ins0:customerID>1644</ins0:customerID><ins0:cartID>8291</ins0:cartID><ins0:cartItems><ins0:CartItem><wsdl:Index>0</wsdl:Index><wsdl:ItemID>SKU-TEST</wsdl:ItemID><wsdl:TIC>00000</wsdl:TIC><wsdl:Price>50.0</wsdl:Price><wsdl:Qty>1</wsdl:Qty></ins0:CartItem><ins0:CartItem><wsdl:Index>1</wsdl:Index><wsdl:ItemID>SKU-TEST1</wsdl:ItemID><wsdl:TIC>00000</wsdl:TIC><wsdl:Price>50.0</wsdl:Price><wsdl:Qty>1</wsdl:Qty></ins0:CartItem></ins0:cartItems><ins0:origin><ins0:Address1>888 6th Ave</ins0:Address1><ins0:Address2 xsi:nil="true"/><ins0:City>New York</ins0:City><ins0:State>NY</ins0:State><ins0:Zip5>10001</ins0:Zip5><ins0:Zip4 xsi:nil="true"/></ins0:origin><ins0:destination><ins0:Address1>888 6th Ave</ins0:Address1><ins0:Address2 xsi:nil="true"/><ins0:City>New York</ins0:City><ins0:State>NY</ins0:State><ins0:Zip5>10001</ins0:Zip5><ins0:Zip4 xsi:nil="true"/></ins0:destination><ins0:apiLoginID>api-login-id</ins0:apiLoginID><ins0:apiKey>api-key</ins0:apiKey></ins0:Lookup></env:Body></env:Envelope>
7 headers:
36 uri: https://api.taxcloud.net:443/1.0/TaxCloud.asmx
37 body: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://taxcloud.net" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="http://taxcloud.net"><env:Body><ins0:AuthorizedWithCapture><ins0:customerID>1644</ins0:customerID><ins0:cartID>8291</ins0:cartID><ins0:orderID>4804</ins0:orderID><ins0:dateAuthorized>2011-09-17</ins0:dateAuthorized><ins0:dateCaptured>2011-09-17</ins0:dateCaptured><ins0:apiLoginID>api-login-id</ins0:apiLoginID><ins0:apiKey>api-key</ins0:apiKey></ins0:AuthorizedWithCapture></env:Body></env:Envelope>
38 headers:
FKFlickrGroupsBrowse.h (https://gitlab.com/vicrius/flickrVisualizer) C Header · 58 lines
19 FKFlickrGroupsBrowseError_UserNotLoggedInOrInsufficientPermissions = 99, /* The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions. */
20 FKFlickrGroupsBrowseError_InvalidAPIKey = 100, /* The API key passed was not valid or has expired. */
21 FKFlickrGroupsBrowseError_ServiceCurrentlyUnavailable = 105, /* The requested service is temporarily unavailable. */
FKFlickrStatsGetPhotosetStats.m (https://gitlab.com/vicrius/flickrVisualizer) Objective C · 108 lines
FKFlickrStatsGetCollectionStats.h (https://gitlab.com/vicrius/flickrVisualizer) C Header · 55 lines
22 FKFlickrStatsGetCollectionStatsError_UserNotLoggedInOrInsufficientPermissions = 99, /* The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions. */
23 FKFlickrStatsGetCollectionStatsError_InvalidAPIKey = 100, /* The API key passed was not valid or has expired. */
24 FKFlickrStatsGetCollectionStatsError_ServiceCurrentlyUnavailable = 105, /* The requested service is temporarily unavailable. */
FKFlickrPhotosCommentsEditComment.m (https://gitlab.com/vicrius/flickrVisualizer) Objective C · 106 lines
FKFlickrPhotosCommentsAddComment.m (https://gitlab.com/vicrius/flickrVisualizer) Objective C · 106 lines
app_settings.html (https://gitlab.com/lileeyao/airnotifier.git) HTML · 269 lines
TransportCreateApiKeyAction.java (https://github.com/elasticsearch/elasticsearch.git) Java · 72 lines
17 import org.elasticsearch.xpack.core.security.SecurityContext;
18 import org.elasticsearch.xpack.core.security.action.apikey.CreateApiKeyAction;
19 import org.elasticsearch.xpack.core.security.action.apikey.CreateApiKeyRequest;
20 import org.elasticsearch.xpack.core.security.action.apikey.CreateApiKeyResponse;
21 import org.elasticsearch.xpack.core.security.authc.Authentication;
29 */
30 public final class TransportCreateApiKeyAction extends HandledTransportAction<CreateApiKeyRequest, CreateApiKeyResponse> {
38 ActionFilters actionFilters,
39 ApiKeyService apiKeyService,
40 SecurityContext context,
49 @Override
50 protected void doExecute(Task task, CreateApiKeyRequest request, ActionListener<CreateApiKeyResponse> listener) {
51 final Authentication authentication = securityContext.getAuthentication();
index.html (https://gitlab.com/betimbryma/SEPM-Ticketline) HTML · 87 lines
MusixMatchPlugin.cpp (https://github.com/lfranchi/tomahawk.git) C++ · 158 lines
34 : InfoPlugin()
35 , m_apiKey( "61be4ea5aea7dd942d52b2f1311dd9fe" )
36 {
67 TomahawkUtils::urlAddQueryItem( url, "apikey", m_apiKey );
68 TomahawkUtils::urlAddQueryItem( url, "q_artist", artist );
124 QString track_id = domNodeList.at(0).toElement().text();
125 QString requestString( "http://api.musixmatch.com/ws/1.1/track.lyrics.get?track_id=%1&format=xml&apikey=%2" );
126 QUrl url( requestString );
128 TomahawkUtils::urlAddQueryItem( url, "apikey", m_apiKey );
129 TomahawkUtils::urlAddQueryItem( url, "track_id", track_id );
APIKey_Id.cs (https://github.com/Vanaheimr/Hermod.git) C# · 387 lines
38 /// <param name="APIKey">An API key identifications.</param>
39 public static Boolean IsNullOrEmpty(this APIKey_Id? APIKey)
40 => !APIKey.HasValue || APIKey.Value.IsNullOrEmpty;
45 /// <param name="APIKey">An API key identifications.</param>
46 public static Boolean IsNotNullOrEmpty(this APIKey_Id? APIKey)
47 => APIKey.HasValue && APIKey.Value.IsNotNullOrEmpty;
227 public static Boolean operator != (APIKey_Id APIKeyIdId1,
228 APIKey_Id APIKeyIdId2)
340 => Object is APIKey_Id apiKeyId &&
341 Equals(apiKeyId);
351 /// <returns>True if both match; False otherwise.</returns>
352 public Boolean Equals(APIKey_Id APIKeyId)
dtrust.php (https://gitlab.com/nahoor/public) PHP · 127 lines
Connection.cs (https://github.com/tjom/MIRPCADB.git) C# · 191 lines
TestOfFlickrAPIAccessor.php (https://github.com/SimonCoopey/ThinkUp.git) PHP · 81 lines
ConfigApiController.php (git://github.com/vanillaforums/Garden.git) PHP · 217 lines
FBSession.h (https://github.com/ilTofa/Coniglio.git) C Header · 203 lines
Task.php (https://github.com/ksecor/civicrm.git) PHP · 281 lines
messages.de.yml (https://gitlab.com/mktcode/widget-management-system) YAML · 70 lines
TDUser.java (https://github.com/rodericj/TopDish.git) Java · 608 lines
113 @Persistent
114 private String ApiKey = UUID.randomUUID().toString();
507 *
508 * @param apiKey
509 * - the API key to set
511 */
512 public TDUser setApiKey(String apiKey) {
513 this.ApiKey = apiKey;
521 */
522 public String getApiKey() {
524 if (null == this.ApiKey)
525 this.ApiKey = UUID.randomUUID().toString();
GroupDiscussInterface.java (https://gitlab.com/sugesk/flickr4java) Java · 238 lines
29 private final String apiKey;
35 public GroupDiscussInterface(String apiKey, String sharedSecret, Transport transportAPI) {
36 this.apiKey = apiKey;
37 this.sharedSecret = sharedSecret;
68 Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret);
69 if (response.isError()) {
109 Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret);
110 if (response.isError()) {
143 Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret);
144 if (response.isError()) {
OctopushTransport.php (https://github.com/stof/symfony.git) PHP · 97 lines
31 private string $userLogin;
32 private string $apiKey;
33 private string $from;
36 public function __construct(string $userLogin, string $apiKey, string $from, string $type, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
37 {
38 $this->userLogin = $userLogin;
39 $this->apiKey = $apiKey;
40 $this->from = $from;
69 'user_login' => $this->userLogin,
70 'api_key' => $this->apiKey,
71 'sms_text' => $message->getSubject(),
user.html (https://gitlab.com/rickmak/skygear-SDK-JS) HTML · 247 lines
ServiceBuilder.java (https://github.com/jfelectron/LJPro.git) Java · 123 lines
17 {
18 private String apiKey;
19 private String apiSecret;
74 *
75 * @param apiKey The api key for your application
76 * @return the {@link ServiceBuilder} instance for method chaining
77 */
78 public ServiceBuilder apiKey(String apiKey)
79 {
80 Preconditions.checkEmptyString(apiKey, "Invalid Api key");
81 this.apiKey = apiKey;
82 return this;
118 Preconditions.checkNotNull(api, "You must specify a valid api through the provider() method");
119 Preconditions.checkEmptyString(apiKey, "You must provide an api key");
120 Preconditions.checkEmptyString(apiSecret, "You must provide an api secret");
requests.go (https://gitlab.com/hasura/kubernetes) Go · 281 lines
OAuth2Manager.java (https://github.com/vilmospapp/liferay-portal.git) Java · 190 lines
10_basic.yml (https://github.com/imotov/elasticsearch.git) YAML · 381 lines
CloudServersUKProviderMetadata.java (https://github.com/ahgittin/legacy-jclouds.git) Java · 112 lines
CronEventTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 215 lines
client.rb (https://github.com/macdiva/bitly.git) Ruby · 140 lines
11 def initialize(login, api_key)
12 @default_query_opts = { :login => login, :apiKey => api_key }
13 end
16 def validate(x_login, x_api_key)
17 response = get('/validate', :query => { :x_login => x_login, :x_apiKey => x_api_key })
18 return response['data']['valid'] == 1
34 #
35 # [x_login and x_apiKey] add this link to another user's history (both required)
36 #
TemplateUpdate.java (https://github.com/lightbody/jcm.git) Java · 204 lines
20 * <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"/>
36 @XmlType(name = "", propOrder = {
37 "apiKey",
38 "templateID",
47 @XmlElement(name = "ApiKey")
48 protected String apiKey;
60 /**
61 * Gets the value of the apiKey property.
62 *
67 */
68 public String getApiKey() {
69 return apiKey;
JayCutter.cs (https://github.com/mpj/jaycut-dotnet-example.git) C# · 123 lines
FFN.cs (https://github.com/marcneuwirth/FantasyFootballNerdAPI.NET.git) C# · 195 lines
37 /// </summary>
38 public string apiKey { get { return _ApiKey; } }
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;
117 HttpWebRequest request = WebRequest.Create(String.Format("{0}{1}?apiKey={2}&playerId={3}",
118 _FFN, _PlayerDetails, _ApiKey, PlayerId)) as HttpWebRequest;
key_auth.class.php (https://bitbucket.org/frchico/chamilo_openshift.git) PHP · 262 lines
BuildPackages.ps1 (https://gitlab.com/0072016/dotnet-corex) Powershell · 171 lines
12 # The API key to use during publishing.
13 [string]$apiKey,
169 Invoke-Expression "$nugetPath pack $packageOutputDir\$package.nuspec -NoPackageAnalysis -NoDefaultExludes -OutputDirectory $packageOutputDir"
170 Invoke-Expression "$nugetPath push -NonInteractive $packageOutputDir\$package.nupkg -s $feed $apiKey"
171 }
WebApi.php (https://github.com/HyperionRiaz/steam-condenser.git) PHP · 136 lines
26 */
27 private static $apiKey = null;
33 */
34 public static function getApiKey() {
35 return self::$apiKey;
40 *
41 * @param string $apiKey The 128bit API key that has to be requested from
42 * http://steamcommunity.com/dev
43 */
44 public static function setApiKey($apiKey) {
45 if($apiKey != null && !preg_match('/^[0-9A-F]{32}$/', $apiKey)) {
49 self::$apiKey = $apiKey;
50 }
sp.resource.directory_test.js (https://gitlab.com/DinaMorad1/NodeTraining) JavaScript · 334 lines
TinyFBClient.java (https://github.com/prompt/preprompt-ioc-di-guice.git) Java · 202 lines
25 public class TinyFBClient {
26 String apiKey;
27 String secretKey;
45 public TinyFBClient( String apiKeyParm, String appSecretParm, String appIdParm){
46 this();
47 apiKey=apiKeyParm;
48 secretKey=appSecretParm;
49 standardParms.put("secret", secretKey);
50 standardParms.put("api_key", apiKey);
51 standardParms.put("app_id", appIdParm);
183 public void setApiKey(String apiKey){
184 this.apiKey=apiKey;
PetApi.cs (https://gitlab.com/akkhil2012/swagger-codegen) C# · 212 lines
test_segment.py (git://github.com/campaignmonitor/createsend-python.git) Python · 114 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
ApiKeyInitializer.java (https://gitlab.com/adam.lukaitis/iosched) Java · 94 lines
35 */
36 public class ApiKeyInitializer implements ServletContextListener {
40 public static final String ATTRIBUTE_ACCESS_KEY = "apiKey";
43 private static final String ENTITY_KEY = "MyKey";
44 private static final String ACCESS_KEY_FIELD = "ApiKey";
79 Key key = KeyFactory.createKey(ENTITY_KIND, ENTITY_KEY);
80 String apiKey = "";
81 try {
82 Entity entity = datastore.get(key);
83 apiKey = (String) entity.getProperty(ACCESS_KEY_FIELD);
84 } catch (EntityNotFoundException e) {
Sunlight.php (https://github.com/michaelmcandrew/citylink.git) PHP · 146 lines
37 static $_apiURL = 'http://api.sunlightlabs.com/';
38 static $_apiKey = null;
58 static function getCityState( $zipcode ) {
59 $key = self::$_apiKey;
60 $uri = "places.getCityStateFromZip.php?zip={$zipcode}&apikey={$key}&output=xml";
66 static function getDetailedInfo( $peopleID ) {
67 $key = self::$_apiKey;
68 $uri = "people.getPersonInfo.php?id={$peopleID}&apikey={$key}&output=xml";
109 }
110 $key = self::$_apiKey;
111 $city = urlencode( $city );
112 $uri = "people.reps.getRepsFromCityState.php?city={$city}&state={$state}&apikey={$key}&output=xml";
113 return self::getPeopleInfo( $uri );
ClientTest.php (https://gitlab.com/twinscom/notifier-php-client) PHP · 450 lines
67 'baseUri' => $baseUri,
68 'apiKey' => 'test-api-key',
69 ]);
106 ),
107 'apiKey' => 'test-api-key',
108 ]);
177 'guzzleHttpClient' => $guzzleHttpClient,
178 'apiKey' => 'test-api-key',
179 ]);
229 'guzzleHttpClient' => $guzzleHttpClient,
230 'apiKey' => 'test-api-key',
231 ]);
278 'guzzleHttpClient' => $guzzleHttpClient,
279 'apiKey' => 'test-api-key',
280 ]);
ReflectionInterface.java (https://gitlab.com/sugesk/flickr4java) Java · 204 lines
36 private final String apiKey;
44 *
45 * @param apiKey
46 * The API key
52 public ReflectionInterface(String apiKey, String sharedSecret, Transport transport) {
53 this.apiKey = apiKey;
54 this.sharedSecret = sharedSecret;
72 Response response = transport.get(transport.getPath(), parameters, apiKey, sharedSecret);
73 if (response.isError()) {
188 Response response = transport.get(transport.getPath(), parameters, apiKey, sharedSecret);
189 if (response.isError()) {
RequestBuilder.java (https://gitlab.com/kevintcoughlin/jumblr) Java · 214 lines
SecurityOAuth.cs (https://github.com/jalchr/ravendb.git) C# · 300 lines
36 {
37 server.Database.Put("Raven/ApiKeys/test", null, RavenJObject.FromObject(new ApiKeyDefinition
38 {
82 {
83 server.Database.Put("Raven/ApiKeys/test", null, RavenJObject.FromObject(new ApiKeyDefinition
84 {
128 server.Database.Put("Raven/ApiKeys/test", null, RavenJObject.FromObject(new ApiKeyDefinition
129 {
195 server.Database.Put("Raven/ApiKeys/test", null, RavenJObject.FromObject(new ApiKeyDefinition
196 {
241 server.Database.Put("Raven/ApiKeys/test", null, RavenJObject.FromObject(new ApiKeyDefinition
242 {
UpdateApiKeyResponseUnmarshaller.cs (https://gitlab.com/vectorci/aws-sdk-net) C# · 149 lines
36 /// <summary>
37 /// Response Unmarshaller for UpdateApiKey operation
38 /// </summary>
39 public class UpdateApiKeyResponseUnmarshaller : JsonResponseUnmarshaller
40 {
47 {
48 UpdateApiKeyResponse response = new UpdateApiKeyResponse();
130 private static UpdateApiKeyResponseUnmarshaller _instance = new UpdateApiKeyResponseUnmarshaller();
132 internal static UpdateApiKeyResponseUnmarshaller GetInstance()
133 {
api.mustache (https://gitlab.com/akkhil2012/swagger-codegen) Mustache · 260 lines
60 class ApiKeyAuth implements Authentication {
61 public apiKey: string;
67 if (this.location == "query") {
68 (<any>requestOptions.qs)[this.paramName] = this.apiKey;
69 } else if (this.location == "header") {
70 requestOptions.headers[this.paramName] = this.apiKey;
71 }
110 {{/isBasic}}
111 {{#isApiKey}}
112 '{{name}}': new ApiKeyAuth({{#isKeyInHeader}}'header'{{/isKeyInHeader}}{{^isKeyInHeader}}'query'{{/isKeyInHeader}}, '{{keyParamName}}'),
113 {{/isApiKey}}
114 {{#isOAuth}}
ApiKeysSectionModel.cs (https://github.com/jalchr/ravendb.git) C# · 122 lines
26 var session = ApplicationModel.Current.Server.Value.DocumentStore.OpenAsyncSession();
27 session.Advanced.LoadStartingWithAsync<ApiKeyDefinition>("Raven/ApiKeys/", pageSize:256).ContinueOnSuccessInTheUIThread(
28 apiKeys =>
29 {
30 OriginalApiKeys = new ObservableCollection<ApiKeyDefinition>(apiKeys);
31 ApiKeys = new ObservableCollection<ApiKeyDefinition>(apiKeys);
72 var session = ApplicationModel.Current.Server.Value.DocumentStore.OpenAsyncSession();
73 session.Advanced.LoadStartingWithAsync<ApiKeyDefinition>("Raven/ApiKeys/" + SearchApiKeys).ContinueOnSuccessInTheUIThread(
74 apiKeys =>
75 {
76 OriginalApiKeys = new ObservableCollection<ApiKeyDefinition>(apiKeys);
77 ApiKeys = new ObservableCollection<ApiKeyDefinition>(apiKeys);
117 {
118 ApiKeys = new ObservableCollection<ApiKeyDefinition>(ApiKeys);
119 OnPropertyChanged(() => ApiKeys);
CustomVisionPredictionManager.java (git://github.com/WindowsAzure/azure-sdk-for-java.git) Java · 77 lines
31 * @param baseUrl the base URL of the service
32 * @param apiKey the Custom Vision Prediction API key
33 * @return the Custom Vision Prediction API client
34 */
35 public static CustomVisionPredictionClient authenticate(String baseUrl, final String apiKey) {
36 ServiceClientCredentials serviceClientCredentials = new ServiceClientCredentials() {
47 * @param credentials the management credentials for Azure
48 * @param apiKey the Custom Vision Prediction API key
49 * @return the Computer Vision API client
63 public static CustomVisionPredictionClient authenticate(String baseUrl, ServiceClientCredentials credentials, final String apiKey) {
64 return new CustomVisionPredictionClientImpl(baseUrl, credentials).withApiKey(apiKey);
65 }
74 public static CustomVisionPredictionClient authenticate(RestClient restClient, final String apiKey) {
75 return new CustomVisionPredictionClientImpl(restClient).withApiKey(apiKey);
76 }
BLGiphyRequestManager.swift (https://gitlab.com/qhcthanh/mygit) Swift · 193 lines
UserMethods.cs (https://github.com/svick/stacky.git) C# · 141 lines
16 {
17 key = apiKey,
18 page = options.Page ?? null,
73 {
74 key = apiKey,
75 page = options.Page ?? null,
105 {
106 key = apiKey,
107 fromdate = options.FromDate.HasValue ? (long?)options.FromDate.Value.ToUnixTime() : null,
132 {
133 key = apiKey,
134 fromdate = options.FromDate.HasValue ? (long?)options.FromDate.Value.ToUnixTime() : null,
Client.cs (https://github.com/kamaldeep/net-api-wrapper-with-source.git) C# · 133 lines
8 {
9 public static Result<string> Create(string apiKey, string companyName, string contactName, string emailAddress, string country, string timezone)
10 {
13 object o = _api.CreateClient(apiKey, companyName, contactName, emailAddress, country, timezone);
21 public static Result<string> UpdateBasics(string apiKey, string clientID, string companyName, string contactName, string emailAddress, string country, string timezone)
22 {
25 object o = _api.UpdateClientBasics(apiKey, clientID, companyName, contactName, emailAddress, country, timezone);
33 public static Result<string> UpdateAccessAndBilling(string apiKey, string clientID, int accessLevel, string username, string password, string billingType, string currency, string deliveryFee, string costPerRecipient, string designAndSpamTestFee)
34 {
update.py (https://gitlab.com/iislod/ckan) Python · 337 lines
helpers.go (https://gitlab.com/unofficial-mirrors/kubernetes) Go · 164 lines
UpdateApiKeyRequest.java (https://gitlab.com/github-cloud-corp/aws-sdk-java) Java · 235 lines
78 public UpdateApiKeyRequest withApiKey(String apiKey) {
79 setApiKey(apiKey);
185 if (getApiKey() != null)
186 sb.append("ApiKey: " + getApiKey() + ",");
187 if (getPatchOperations() != null)
202 UpdateApiKeyRequest other = (UpdateApiKeyRequest) obj;
203 if (other.getApiKey() == null ^ this.getApiKey() == null)
204 return false;
205 if (other.getApiKey() != null
206 && other.getApiKey().equals(this.getApiKey()) == false)
207 return false;
222 hashCode = prime * hashCode
223 + ((getApiKey() == null) ? 0 : getApiKey().hashCode());
224 hashCode = prime
mailchimp.php (https://gitlab.com/gregtyka/lfmawordpress) PHP · 97 lines
User.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 364 lines
76 public static Collection<User> getFriends(String user, String apiKey) {
77 return getFriends(user, false, 100, apiKey);
80 public static Collection<User> getFriends(String user, boolean recenttracks, int limit, String apiKey) {
81 Result result = Caller.getInstance().call("user.getFriends", apiKey, "user", user, "recenttracks",
93 public static Collection<User> getNeighbours(String user, String apiKey) {
94 return getFriends(user, false, 100, apiKey);
97 public static Collection<User> getNeighbours(String user, int limit, String apiKey) {
98 Result result = Caller.getInstance()
99 .call("user.getNeighbours", apiKey, "user", user, "limit", String.valueOf(limit));
100 if (!result.isSuccessful())
commands_test.go (https://gitlab.com/github-cloud-corporation/machine) Go · 243 lines
159 defer func(factory func(baseDir string, apiKey string) crashreport.CrashReporter) {
160 crashreport.NewCrashReporter = factory
186 mockCrashReporter := &MockCrashReporter{}
187 crashreport.NewCrashReporter = func(baseDir string, apiKey string) crashreport.CrashReporter {
188 return mockCrashReporter
TwitlongerHelper.java (https://bitbucket.org/thenameisnigel/boid-for-twitter.git) Java · 164 lines
26 private TwitlongerHelper(String application, String apiKey, String username) {
27 _app = application;
28 _key = apiKey;
29 _user = username;
38 * @param application The application identifier given to you by Twitlonger.
39 * @param apiKey The API key given to you by Twitlonger.
40 * @param username The screenname of the user that will be posting long tweets.
42 */
43 public static TwitlongerHelper create(String application, String apiKey, String username) { return new TwitlongerHelper(application, apiKey, username); }
OAuthRequestAuthorizer.cs (https://github.com/jalchr/ravendb.git) C# · 207 lines
12 {
13 public bool Authorize(IHttpContext ctx, bool hasApiKey)
14 {
31 WriteAuthorizationChallenge(ctx, hasApiKey ? 412 : 401, "invalid_request", "The access token is required");
130 public IPrincipal GetUser(IHttpContext ctx, bool hasApiKey)
131 {
135 {
136 WriteAuthorizationChallenge(ctx, hasApiKey ? 412 : 401, "invalid_request", "The access token is required");
Api.php (https://gitlab.com/billyprice1/Stikked) PHP · 198 lines
43 if (config_item('apikey') != $this->input->get('apikey'))
44 {
92 if (config_item('apikey') != $this->input->get('apikey'))
93 {
120 if (config_item('apikey') != $this->input->get('apikey'))
121 {
137 if (config_item('apikey') != $this->input->get('apikey'))
138 {
166 if (config_item('apikey') != $this->input->get('apikey'))
167 {
FlickrStub.java (git://github.com/callmeal/Flickr4Java.git) Java · 488 lines
140 public String getApiKey() {
141 return apiKey;
142 }
149 */
150 public void setApiKey(String apiKey) {
151 if (apiKey == null) {
153 }
154 this.apiKey = apiKey;
155 }
290 if (interestingnessInterface == null) {
291 interestingnessInterface = new InterestingnessInterface(apiKey, sharedSecret, transport);
292 }
318 if (notesInterface == null) {
319 notesInterface = new NotesInterface(apiKey, sharedSecret, transport);
320 }
TagsInterface.java (https://gitlab.com/sugesk/flickr4java) Java · 411 lines
52 private final String apiKey;
60 *
61 * @param apiKey
62 * The API key
65 */
66 public TagsInterface(String apiKey, String sharedSecret, Transport transportAPI) {
68 this.apiKey = apiKey;
69 this.sharedSecret = sharedSecret;
92 Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret);
93 if (response.isError()) {
LaunchCrashDeliveryTest.kt (https://github.com/bugsnag/bugsnag-android.git) Kotlin · 166 lines
ApiConnector.py (https://gitlab.com/farmee-public/farmee-controller-rpi) Python · 269 lines
BitLyShortenRequest.as (https://github.com/duponce/as3.git) ActionScript · 141 lines
test_multilingual_plugin.py (https://gitlab.com/iislod/ckan) Python · 216 lines
db_api_spec.rb (https://gitlab.com/vectorci/td-client-ruby) Ruby · 123 lines
TiFlurryModule.m (https://bitbucket.org/plepic/titanium_modules.git) Objective C · 175 lines
sessionsAndGroups.js (https://gitlab.com/auchalet/etherpad-lite) JavaScript · 365 lines
PetApi.as (https://gitlab.com/akkhil2012/swagger-codegen) ActionScript · 276 lines
FacebookSystemBean.java (https://gitlab.com/manoj-makkuboy/magnetism) Java · 166 lines
134 return "http://www.facebook.com/profile.php?uid="
135 + facebookAccount.getFacebookUserId() + "&api_key=" + getApiKey();
136 } catch (NotFoundException e) {
142 if ((facebookEvent.getEventType() == FacebookEventType.LOGIN_STATUS_EVENT) && (facebookEvent.getCount() == 0)) {
143 return "http://api.facebook.com/login.php?api_key=" + getApiKey() + "&next=/";
144 } else {
145 return "http://www.facebook.com/" + facebookEvent.getEventType().getPageName() + ".php?uid="
146 + facebookEvent.getFacebookAccount().getFacebookUserId() + "&api_key=" + getApiKey();
147 }
150 public String getApiKey() {
151 String apiKey;
152 try {
153 apiKey = config.getPropertyNoDefault(HippoProperty.FACEBOOK_API_KEY).trim();
154 if (apiKey.length() == 0)
datatype.php (https://gitlab.com/srueegger/Social-Meal) PHP · 211 lines
194 *
195 * @param string $apikey
196 * @return DataTypeShare
198 public function getShare($apikey){
199 return DataTypeShare::GetByDataTypeAndApiKey($this,$apikey);
200 }
202 /**
203 * @param string $apikey
204 * @return boolean
205 */
206 public function allowShare($apikey){
207 return $this->getShare($apikey) != null;
groups_test.rb (https://github.com/suhaspnehete/EngineY.git) Ruby · 116 lines
9 test "get all groups" do
10 get "/groups.json", :api_key=>'testapikey'
11 assert_response :success
20 test "get one group" do
21 get "groups/1.json", :api_key=>'testapikey'
22 assert_response :success
42 get "/logout"
43 post "/groups.xml", :api_key=>'testapikey',
44 :group => {:name=>'unit test group',
54 get "/logout"
55 post "/groups.json", :api_key => 'testapikey',
56 :group => {:name=>'unit test group',
77 get "/logout"
78 put "/groups/1.xml", :api_key => 'testapikey',
79 :group => { :name=>'renamed unit test group',
Handler.cfc (https://bitbucket.org/asfusion/mango-updates.git) ColdFusion CFScript · 179 lines
16 <cfset variables.manager = arguments.mainManager />
17 <cfset variables.apiKey = variables.preferencesManager.get(path,"apiKey","YOUR_AKISMET_API_KEY") />
18 <cfset variables.mode = variables.preferencesManager.get(path,"mode","moderate") />
49 <cfset var path = variables.manager.getBlog().getId() & "/" & variables.package />
50 <cfif NOT len(variables.preferencesManager.get(path,"apiKey",""))>
51 <cfset variables.preferencesManager.put(path,"apiKey","YOUR_AKISMET_API_KEY") />
139 <cfif structkeyexists(data.externaldata,"apply")>
140 <cfset variables.apiKey = data.externaldata.apiKey />
141 <cfset variables.mode = data.externaldata.mode />
142 <cfset path = variables.manager.getBlog().getId() & "/" & variables.package />
143 <cfset variables.preferencesManager.put(path,"apiKey",variables.apiKey) />
144 <cfset variables.preferencesManager.put(path,"mode",variables.mode) />
173 <cfset variables.cfakismet.setBlogURL(variables.manager.getBlog().getUrl())>
174 <cfset variables.cfakismet.setKey(variables.apiKey)>
175 <cfset variables.cfakismet.setApplicationName("Mango " & variables.manager.getVersion())>
QueueingServiceExamples.vb (https://gitlab.com/rekby-archive/onlyoffice-CommunityServer) Visual Basic · 115 lines
MapperDbTable.php (https://github.com/HomeNet/HomeNet.me-Website.git) PHP · 191 lines
ShortenComponent.php (https://github.com/MadMikeyB/CakePHP-Scrapbook.git) PHP · 130 lines
44 if (empty($options['kwn'])) { // check if the user has passed any args with the shorten func
45 $this->kwnApiKey = 'REPLACEME'; // get from kwn.me/api?act=key
46 $this->kwnDomain = 'kwn.me'; // can be kwn.me or quicklink.me
47 } else {
48 $this->kwnApiKey = $options['kwn']['ApiKey'];
49 $this->kwnDomain = $options['kwn']['Domain'];
72 $this->bitlyLogin = $options['bitly']['Login'];
73 $this->bitlyApiKey = $options['bitly']['ApiKey'];
74 $this->bitlyFormat = $options['bitly']['Format'];
76 // get stuff done
77 $bitlyshortenedURL = file_get_contents("http://api.bitly.com/v3/shorten?login={$this->bitlyLogin}&apiKey={$this->bitlyApiKey}&longUrl={$longurl}&format={$this->bitlyFormat}");
78 if (!empty($bitlyshortenedURL)) {
109 $this->googleDomain = $options['google']['Domain'];
110 $this->googleApiKey = $options['google']['ApiKey'];
111 }
PetApi.ts (https://gitlab.com/akkhil2012/swagger-codegen) TypeScript · 382 lines
user_tests.rb (https://gitlab.com/debian-ruby/ruby-fog-rackspace) Ruby · 106 lines
HttpUrlConnectionFactory.java (https://github.com/softwareguruji/spreadshirtapps.git) Java · 165 lines
31 public HttpUrlConnectionFactory(String apiKey, String secret, String sessionId) {
32 this.apiKey = apiKey;
33 this.secret = secret;
37 public String getApiKey() {
38 return apiKey;
39 }
41 public void setApiKey(String apiKey) {
42 this.apiKey = apiKey;
43 }
68 HttpMethod tunneledMethod,
69 boolean apiKeyProtected,
70 boolean sessionIdProtected,
78 "" + API_KEY + " or " + SIG + " or " + TIME + "!");
79 if (apiKey == null || secret == null)
80 throw new IllegalArgumentException("APIKey or secret not found!");
NSMutableDictionary+SSDKInit.h (https://gitlab.com/bigmanhxx/17-muxie) C Header · 291 lines
67 */
68 - (void)SSDKSetupFacebookByApiKey:(NSString *)apiKey
69 appSecret:(NSString *)appSecret
91 */
92 - (void)SSDKSetupDouBanByApiKey:(NSString *)apiKey
93 secret:(NSString *)secret
115 */
116 - (void)SSDKSetupKaiXinByApiKey:(NSString *)apiKey
117 secretKey:(NSString *)secretKey
159 */
160 - (void)SSDKSetupLinkedInByApiKey:(NSString *)apiKey
161 secretKey:(NSString *)secretKey
180 */
181 - (void)SSDKSetupFlickrByApiKey:(NSString *)apiKey
182 apiSecret:(NSString *)apiSecret;
bugzilla.lua (https://gitlab.com/yeah568/telegram-bot) Lua · 105 lines
14 -- data = bugzilla_login()
15 local url = BASE_URL.."bug/" .. id .. "?api_key=" .. _config.bugzilla.apikey
16 -- print(url)
22 local function bugzilla_listopened(email)
23 local url = BASE_URL.."bug?include_fields=id,summary,status,whiteboard,resolution&email1=" .. email .. "&email2=" .. email .. "&emailassigned_to2=1&emailreporter1=1&emailtype1=substring&emailtype2=substring&f1=bug_status&f2=bug_status&n1=1&n2=1&o1=equals&o2=equals&resolution=---&v1=closed&v2=resolved&api_key=" .. _config.bugzilla.apikey
24 local res,code = https.request( url )
MarketPluginTools.dal.test.php (https://github.com/orchestra-io/sample-openx.git) PHP · 172 lines
128 $publisherAccountId = 'test_publ_isher_accountid';
129 $apiKey = 'apikey';
131 $result = OX_Dal_Market_MarketPluginTools::storeMarketAccountAssocData($publisherAccountId, $apiKey);
132 $this->assertTrue($result);
134 $result = OA_Dal_ApplicationVariables::_getAll();
135 $result['oxMarket_publisher_account_id'] = $apiKey;
136 $result['oxMarket_api_key'] = $publisherAccountId;
146 $publisherAccountId = 'test2_publ_isher_accountid';
147 $apiKey = 'apikey2';
158 $result = OX_Dal_Market_MarketPluginTools::getMarketAccountAssocData();
159 $this->assertEqual($result, array('apiKey' => $apiKey, 'accountUuid' => $publisherAccountId));
settings.html (https://gitlab.com/minaz922/reaction-core-deprecated) HTML · 126 lines
auth_spec.rb (https://github.com/wuputah/heroku.git) Ruby · 163 lines
57 @cli.stub!(:check)
58 @cli.stub!(:ask_for_credentials).and_return("username", "apikey")
59 @cli.should_receive(:write_credentials)
66 @cli.stub!(:retry_login?).and_return(false)
67 @cli.stub!(:ask_for_credentials).and_return("username", "apikey")
68 @cli.stub!(:check) { raise RestClient::Unauthorized }
76 @cli.stub!(:delete_credentials)
77 @cli.stub!(:ask_for_credentials).and_return("username", "apikey")
78 @cli.stub!(:check) { raise RestClient::Unauthorized }
99 FileUtils.mkdir_p("~/.ssh")
100 @cli.stub!(:ask_for_credentials).and_return("username", "apikey")
101 end
tumblr.js (https://gitlab.com/kevintcoughlin/tumblr.js) JavaScript · 253 lines
GetApiKeyResponseUnmarshaller.cs (https://gitlab.com/github-cloud-corp/aws-sdk-net) C# · 145 lines
36 /// <summary>
37 /// Response Unmarshaller for GetApiKey operation
38 /// </summary>
39 public class GetApiKeyResponseUnmarshaller : JsonResponseUnmarshaller
40 {
47 {
48 GetApiKeyResponse response = new GetApiKeyResponse();
126 private static GetApiKeyResponseUnmarshaller _instance = new GetApiKeyResponseUnmarshaller();
128 internal static GetApiKeyResponseUnmarshaller GetInstance()
129 {
WebserviceCodeGenInfo.java (https://gitlab.com/jsr38/intermine) Java · 204 lines
login.html (https://github.com/arindambiswas/NatGeo.git) HTML · 84 lines
ApiKey.h (https://gitlab.com/vectorci/aws-sdk-cpp) C Header · 296 lines
40 */
41 class AWS_APIGATEWAY_API ApiKey
42 {
43 public:
44 ApiKey();
45 ApiKey(const Aws::Utils::Json::JsonValue& jsonValue);
46 ApiKey& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
47 Aws::Utils::Json::JsonValue Jsonize() const;
71 */
72 inline ApiKey& WithId(const Aws::String& value) { SetId(value); return *this;}
76 */
77 inline ApiKey& WithId(Aws::String&& value) { SetId(value); return *this;}
InternalReportDelegate.java (https://github.com/bugsnag/bugsnag-android.git) Java · 136 lines
FKFlickrPhotosPeopleEditCoords.h (https://gitlab.com/vicrius/flickrVisualizer) C Header · 64 lines
23 FKFlickrPhotosPeopleEditCoordsError_UserNotLoggedInOrInsufficientPermissions = 99, /* The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions. */
24 FKFlickrPhotosPeopleEditCoordsError_InvalidAPIKey = 100, /* The API key passed was not valid or has expired. */
25 FKFlickrPhotosPeopleEditCoordsError_ServiceCurrentlyUnavailable = 105, /* The requested service is temporarily unavailable. */
FKFlickrPhotosGeoSetPerms.m (https://gitlab.com/vicrius/flickrVisualizer) Objective C · 127 lines
Util.java (https://bitbucket.org/plepic/titanium_modules.git) Java · 175 lines
security.js (https://gitlab.com/abh1/web-applications-study-group) JavaScript · 135 lines
Parser.php (https://github.com/rkabir/Swiftriver.git) PHP · 121 lines
9 * @param \Swiftriver\Core\ObjectModel\Content[] $items
10 * @param string $apiKey
11 * @return string
12 */
13 public function ParseToRequestJson($items, $apiKey) {
14 //set up the array to hold the item dtos
25 //Add the json header information
26 $object->key = $apiKey;
38 public function ParseItemToRequestJson($item, $apiKey) {
39 $i->id = $item->id;
42 //Add the json header information
43 $object->key = $apiKey;