PageRenderTime 45ms queryTime 33ms sortTime 14ms getByIdsTime 73ms findMatchingLines 18ms

100+ results results for 'apikey' (45 ms)

Not the results you expected?
auth.js https://github.com/cramforce/mu.git | JavaScript | 403 lines
                    
99  getLoginStatus: function(cb, force) {
                    
100    if (!FB._apiKey) {
                    
101      FB.log('FB.getLoginStatus() called before calling FB.init().');
                    
141      url = FB._domain.www + 'extern/login_status.php?' + FB.QS.encode({
                    
142        api_key    : FB._apiKey,
                    
143        no_session : xdHandler(lsCb, g, 'parent', false, 'notConnected'),
                    
211  login: function(cb, perms) {
                    
212    if (!FB._apiKey) {
                    
213      FB.log('FB.login() called before calling FB.init().');
                    
230      url = FB._domain.www + 'login.php?' + FB.QS.encode({
                    
231        api_key         : FB._apiKey,
                    
232        cancel_url      : cancel,
                    
260  logout: function(cb) {
                    
261    if (!FB._apiKey) {
                    
262      FB.log('FB.logout() called before calling FB.init().');
                    
                
ModuleXbmcplugin.h https://gitlab.com/sandihidayat/kodi | C Header | 235 lines
                    
121     * example:
                    
122     *   - apikey = xbmcplugin.getSetting(int(sys.argv[1]), 'apikey')
                    
123     */
                    
                
openstack.go https://gitlab.com/CORP-RESELLER/kubernetes | Go | 421 lines
                    
105		Password   string
                    
106		ApiKey     string `gcfg:"api-key"`
                    
107		TenantId   string `gcfg:"tenant-id"`
                    
131		Password:         cfg.Global.Password,
                    
132		APIKey:           cfg.Global.ApiKey,
                    
133		TenantID:         cfg.Global.TenantId,
                    
                
weather_underground.py https://gitlab.com/cburki/python_wunderground | Python | 361 lines
                    
38
                    
39    URL = 'http://api.wunderground.com/api/{apikey}/{features}/q/{location}.json'
                    
40    QUERY_TIMEOUT = 30
                    
49
                    
50    def __init__(self, apiKey, cache):
                    
51        """
                    
53
                    
54        :param apiKey: The weather underground API key
                    
55        :type apiKey: string
                    
59
                    
60        self._apiKey = apiKey
                    
61        self._cache = cache
                    
326
                    
327        url = WeatherUnderground.URL.format(apikey=self._apiKey, features=features, location=location)
                    
328
                    
                
datasources.rst https://github.com/steinkel/docs.git | ReStructuredText | 297 lines
                    
79        public $config = array(
                    
80            'apiKey' => '',
                    
81        );
                    
164             */
                    
165            $queryData['conditions']['apiKey'] = $this->config['apiKey'];
                    
166            $json = $this->Http->get(
                    
182            $data = array_combine($fields, $values);
                    
183            $data['apiKey'] = $this->config['apiKey'];
                    
184            $json = $this->Http->post('http://example.com/api/set.json', $data);
                    
207                'id' => $id[$model->alias . '.id'],
                    
208                'apiKey' => $this->config['apiKey'],
                    
209            ));
                    
224        'datasource' => 'FarAwaySource',
                    
225        'apiKey'     => '1234abcd',
                    
226    );
                    
                
server.js https://github.com/robertjd/everyauth.git | JavaScript | 296 lines
                    
167everyauth.gowalla
                    
168  .appId(conf.gowalla.apiKey)
                    
169  .appSecret(conf.gowalla.apiSecret)
                    
178everyauth.linkedin
                    
179  .consumerKey(conf.linkedin.apiKey)
                    
180  .consumerSecret(conf.linkedin.apiSecret)
                    
268everyauth.box
                    
269  .apiKey(conf.box.apiKey)
                    
270  .findOrCreateUser( function (sess, authToken, boxUser) {
                    
                
td_logger.rb https://gitlab.com/vectorci/td-logger-ruby | Ruby | 388 lines
                    
14
                    
15    apikey = options[:apikey]
                    
16    unless apikey
                    
16    unless apikey
                    
17      raise ArgumentError, ":apikey options is required"
                    
18    end
                    
41    options[:ssl] = options[:use_ssl] unless options[:use_ssl].nil?
                    
42    @client = TreasureData::Client.new(apikey, options)
                    
43
                    
                
onboardingScreen.html https://gitlab.com/yenny.prathivi/mist | HTML | 198 lines
                    
62                        {{#unless TemplateVar.get "testnet"}}
                    
63                            <a href="https://shapeshift.io/shifty.html?destination={{newAccountLowerCase}}&amp;output=ETH&amp;apiKey=ef8312d8c9b9dda64fb852e8683eac6c33123f8743ff11383fb3bab29a364c01c27343fced4e628db8d5d66d763565763f8699c0fc903ec23db31cb908a944c8" class="button dapp-block-button dapp-small shapeshift" target="_popup"> {{i18n "mist.popupWindows.onboarding.depositBitcoin"}}  </a>
                    
64                            <h6> {{{i18n "mist.popupWindows.onboarding.viaShapeshift"}}} </h6>
                    
                
release-sourceforge.sh https://gitlab.com/Datse-Multimedia-Productions/LedgerSMB | Shell | 245 lines
                    
61############
                    
62HowToGetAPIkey() {
                    
63    cat <<-EOF
                    
74                    [sourceforge]
                    
75                    ApiKey    = YourKey
                    
76        
                    
81        # test for the apikey first so we can display help on getting it.
                    
82        if ( [[ ! -v cfgValue[sourceforge_ApiKey] ]] || [[ -z "${cfgValue[sourceforge_ApiKey]}" ]] ); then HowToGetAPIkey; fi #return; fi
                    
83        TestConfigInit;
                    
85        TestConfig4Key 'sourceforge' 'ReadlineHistory'     '/tmp/sourceforge.history'
                    
86        TestConfig4Key 'sourceforge' 'ApiKey'              'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
                    
87        TestConfig4Key 'sourceforge' 'DefaultFileTemplate' 'Releases/${release_version}/ledgersmb-${release_version}.tar.gz'
                    
149        -d "$_Download_Label" \
                    
150        -d "api_key=${cfgValue[sourceforge_ApiKey]}" \
                    
151        "https://sourceforge.net/projects/${cfgValue[sourceforge_Project]}/files/$_DefaultFile"`
                    
                
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>
                    
                
Settings.h https://github.com/openscad/openscad.git | C Header | 283 lines
                    
180  static SettingsEntryString octoPrintUrl;
                    
181  static SettingsEntryString octoPrintApiKey;
                    
182  static SettingsEntryEnum octoPrintFileFormat;
                    
                
Inbox_list_ViewController.m https://gitlab.com/pqhuy1987/Mahaikum | Objective C | 293 lines
                    
72    NSString *salt = [NSString stringWithFormat:@"%d",rand() % 10000];
                    
73    NSString *key = SIGNSALTAPIKEY;
                    
74    NSString *tempStr = [NSString stringWithFormat:@"%@%@",key,salt];
                    
                
Social.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 330 lines
                    
82        if (isset($data['conf[native][socialNetworking][twitter][apiKey]'])) {
                    
83            $twitterApiKey = $data['conf[native][socialNetworking][twitter][apiKey]'];
                    
84        } else {
                    
88        $twitterApiKeyField = $fieldsetTwitter->addField(
                    
89            'conf/native/socialNetworking/twitter/apiKey',
                    
90            'text',
                    
199        if (isset($data['conf[native][socialNetworking][linkedin][apiKey]'])) {
                    
200            $linkedinApiKey = $data['conf[native][socialNetworking][linkedin][apiKey]'];
                    
201        } else {
                    
260             */
                    
261            ->addFieldMap($twitterApiKeyField->getHtmlId(), $twitterApiKeyField->getName())
                    
262            ->addFieldMap($twitterActiveField->getHtmlId(), $twitterActiveField->getName())
                    
274             */
                    
275            ->addFieldMap($linkedinApiKeyField->getHtmlId(), $linkedinApiKeyField->getName())
                    
276            ->addFieldMap($linkedinActiveField->getHtmlId(), $linkedinActiveField->getName())
                    
                
EntityAnnotationResultsImporter.java https://gitlab.com/mshepherd/resumeparser | Java | 266 lines
                    
53
                    
54  private String apiKey;
                    
55
                    
71
                    
72  public String getApiKey() {
                    
73    return apiKey;
                    
76  @CreoleParameter(comment = "CrowdFlower API key")
                    
77  public void setApiKey(String apiKey) {
                    
78    this.apiKey = apiKey;
                    
158  public Resource init() throws ResourceInstantiationException {
                    
159    if(apiKey == null || "".equals(apiKey)) {
                    
160      throw new ResourceInstantiationException("API Key must be set");
                    
161    }
                    
162    crowdFlowerClient = new CrowdFlowerClient(apiKey);
                    
163    return this;
                    
                
README.md https://gitlab.com/vectorci/td-ios-sdk | Markdown | 368 lines
                    
53- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
                    
54    [TreasureData initializeWithApiKey:@"your_api_key"];
                    
55}
                    
135{
                    
136	[TreasureData initializeWithApiKey:@"your_api_key"];
                    
137	[[TreasureData sharedInstance] setDefaultDatabase:@"testdb"];
                    
234    [TreasureData initializeApiEndpoint:@"https://in.treasuredata.com"];
                    
235    [TreasureData initializeWithApiKey:@"your_api_key"];
                    
236```
                    
                
index.htm https://github.com/mastahype/PhonoSDK.git | HTML | 182 lines
                    
75	    			.callme({
                    
76	    				apiKey: "C17D167F-09C6-4E4C-A3DD-2025D48BA243",
                    
77	    				numberToDial: "8003544487",
                    
87	    			.callme({
                    
88	    				apiKey: "C17D167F-09C6-4E4C-A3DD-2025D48BA243",
                    
89	    				numberToDial: "8007773456",
                    
136    .callme({
                    
137      apiKey: "C17D167F-09C6-4E4C-A3DD-2025D48BA243",
                    
138      numberToDial: "8007773456",
                    
165    .callme({
                    
166      apiKey: "C17D167F-09C6-4E4C-A3DD-2025D48BA243",
                    
167      numberToDial: "8003544487",
                    
                
in_td_monitor_agent.rb https://gitlab.com/CORP-RESELLER/fluent-plugin-td-monitoring | Ruby | 485 lines
                    
9
                    
10    config_param :apikey, :string, :secret => true
                    
11    config_param :emit_interval, :time, :default => 60
                    
271      header = {}
                    
272      if @apikey
                    
273        header['Authorization'] = "TD1 #{@apikey}"
                    
                
filemanager.rsc.class.php https://gitlab.com/mautic-master/mautic | PHP | 384 lines
                    
20		require_once('cloudfiles.php');
                    
21		$auth = new CF_Authentication($this->config['rsc-username'], $this->config['rsc-apikey']);
                    
22		$auth->authenticate();
                    
                
channel.py https://github.com/zatosource/zato.git | Python | 262 lines
                    
16from zato.common.util.api import fs_safe_now
                    
17from zato.common.util.cli import APIKeyManager, BasicAuthManager
                    
18
                    
88            header, key = self._extract_credentials(name, api_key, True)
                    
89            manager = APIKeyManager(self, name, True, header, key)
                    
90            response = manager.create()
                    
                
api_test.go https://gitlab.com/jjae2124/tyk | Go | 539 lines
                    
55	thisSpec := createDefinitionFromString(apiTestDef)
                    
56	redisStore := RedisStorageManager{KeyPrefix: "apikey-"}
                    
57	healthStore := &RedisStorageManager{KeyPrefix: "apihealth."}
                    
                
RegistrationClient.lib.test.php https://bitbucket.org/valmy/openx.git | PHP | 147 lines
                    
77        $call = array('createAccountBySsoCred', array($username, $md5password, $this->platformHash));
                    
78        $response = array('accountUuid' => 'pub-acc-id', 'apiKey' => 'api-key');
                    
79        
                    
95        $call = array('createAccount', array($email, $username, $md5password, $captcha, $captcha_random, $this->platformHash));
                    
96        $response = array('accountUuid' => 'pub-acc-id', 'apiKey' => 'api-key');
                    
97        
                    
                
fingerprinting.py https://github.com/lalinsky/picard.git | Python | 144 lines
                    
40        config.TextOption("setting", "acoustid_fpcalc", ""),
                    
41        config.TextOption("setting", "acoustid_apikey", ""),
                    
42    ]
                    
53        self.ui.acoustid_fpcalc_download.clicked.connect(self.acoustid_fpcalc_download)
                    
54        self.ui.acoustid_apikey_get.clicked.connect(self.acoustid_apikey_get)
                    
55
                    
61        self.ui.acoustid_fpcalc.setText(config.setting["acoustid_fpcalc"])
                    
62        self.ui.acoustid_apikey.setText(config.setting["acoustid_apikey"])
                    
63        self.ui.ignore_existing_acoustid_fingerprints.setChecked(config.setting["ignore_existing_acoustid_fingerprints"])
                    
71        config.setting["acoustid_fpcalc"] = unicode(self.ui.acoustid_fpcalc.text())
                    
72        config.setting["acoustid_apikey"] = unicode(self.ui.acoustid_apikey.text())
                    
73        config.setting["ignore_existing_acoustid_fingerprints"] = self.ui.ignore_existing_acoustid_fingerprints.isChecked()
                    
94
                    
95    def acoustid_apikey_get(self):
                    
96        webbrowser2.goto('acoustid_apikey')
                    
                
pubsub.js https://gitlab.com/rickmak/skygear-SDK-JS | JavaScript | 532 lines
                    
80    let path = internal ? '/_/pubsub' : '/pubsub';
                    
81    var queryString = '?api_key=' + this._container.apiKey;
                    
82    return protocol + '//' + parsedUrl.host + path + queryString;
                    
85  _hasCredentials() {
                    
86    return !!this._container.apiKey;
                    
87  }
                    
                
ConfigurationListForm.cs https://gitlab.com/martijnvds/zaaksysteemuploadservice | C# | 185 lines
                    
139                cdi.Name = cf.configurationNameEntry.Text;
                    
140                cdi.APIKey = cf.apiKeyEntry.Text;
                    
141                cdi.WatchPath = cf.selectedFolder.Text;
                    
                
LastfmRequest.cs https://github.com/dufoli/banshee.git | C# | 376 lines
                    
113            incremental_data.AppendFormat ("?method={0}", method);
                    
114            incremental_data.AppendFormat ("&api_key={0}", LastfmCore.ApiKey);
                    
115
                    
287            if (!sorted_params.ContainsKey ("api_key")) {
                    
288                sorted_params.Add ("api_key", LastfmCore.ApiKey);
                    
289            }
                    
                
DetailInvoker.java https://github.com/lolay/citygrid-java-old.git | Java | 213 lines
                    
42	private String publisher = null;
                    
43	private String apiKey = null;
                    
44	private Boolean customerOnly = null;
                    
79	}
                    
80	public String getApiKey() {
                    
81		return apiKey;
                    
82	}
                    
83	public void setApiKey(String apiKey) {
                    
84		this.apiKey = apiKey;
                    
139			.phone(prototype.getPhone()).publisher(prototype.getPublisher())
                    
140			.apiKey(prototype.getApiKey()).customerOnly(prototype.getCustomerOnly())
                    
141			.allResults(prototype.getAllResults()).reviewCount(prototype.getReviewCount())
                    
178		
                    
179		public Builder apiKey(String apiKey) {
                    
180			instance.setApiKey(apiKey);
                    
                
BeintooUser.java https://github.com/neojjang/titanium_modules-1.git | Java | 431 lines
                    
53		HeaderParams header = new HeaderParams();
                    
54		header.getKey().add("apikey");
                    
55		header.getValue().add(DeveloperConfiguration.apiKey);
                    
75		HeaderParams header = new HeaderParams();
                    
76		header.getKey().add("apikey");
                    
77		header.getValue().add(DeveloperConfiguration.apiKey);
                    
108		HeaderParams header = new HeaderParams();
                    
109		header.getKey().add("apikey");
                    
110		header.getValue().add(DeveloperConfiguration.apiKey);
                    
138		HeaderParams header = new HeaderParams();
                    
139		header.getKey().add("apikey");
                    
140		header.getValue().add(DeveloperConfiguration.apiKey);
                    
168		HeaderParams header = new HeaderParams();
                    
169		header.getKey().add("apikey");
                    
170		header.getValue().add(DeveloperConfiguration.apiKey);
                    
                
Geo.java https://github.com/foobnix/foobnix-android.git | Java | 285 lines
                    
74	 * @param distance Find events within a specified distance
                    
75	 * @param apiKey A Last.fm API key.
                    
76	 * @return a list containing all events
                    
77	 */
                    
78	public static Collection<Event> getAllEvents(String location, String distance, String apiKey) {
                    
79		Collection<Event> events = null;
                    
81		do {
                    
82			PaginatedResult<Event> result = getEvents(location, distance, page, apiKey);
                    
83			total = result.getTotalPages();
                    
103	 * @param distance Find events within a specified distance
                    
104	 * @param apiKey A Last.fm API key.
                    
105	 * @return a {@link PaginatedResult} containing a list of events
                    
106	 */
                    
107	public static PaginatedResult<Event> getEvents(String location, String distance, String apiKey) {
                    
108		return getEvents(location, distance, 1, apiKey);
                    
                
homework_openapi.yaml https://gitlab.com/ngquocvu/nodejs-hw2 | YAML | 481 lines
                    
427  jwt_token:
                    
428    type: "apiKey"
                    
429    name: "Authorization"
                    
                
common.php https://github.com/planetenkiller/TimeIt-zk-12.git | PHP | 215 lines
                    
71define('_TIMEIT_FRIENDEVENT',   'event for friends only');
                    
72define('_TIMEIT_GOOGLEMAPSAPIKEY','Google Maps Api Key(when use locations: not necessary)');
                    
73define('_TIMEIT_GLOBALCALENDAR','Allow global events');
                    
                
CMS.pm https://github.com/rayners/mt-plugin-mediamanager.git | Perl | 228 lines
                    
29    my $api = new Flickr::API({
                    
30	'key'    => _creds()->{flickr_apikey},
                    
31	'secret' => _creds()->{flickr_secret},
                    
81    my $api = new Flickr::API({
                    
82	'key'    => _creds()->{flickr_apikey},
                    
83	'secret' => _creds()->{flickr_secret},
                    
120	my $api = new Flickr::API({
                    
121	    'key'    => _creds()->{flickr_apikey},
                    
122	    'secret' => _creds()->{flickr_secret},
                    
163    my $api = new Flickr::API({
                    
164	'key'    => _creds()->{flickr_apikey},
                    
165	'secret' => _creds()->{flickr_secret},
                    
                
prowlpy.py https://github.com/jacobb/prowlpy.git | Python | 296 lines
                    
71        """
                    
72        self.apikey = apikey
                    
73
                    
139        # Perform the request and get the response headers and content
                    
140        data = {'apikey': self.apikey,
                    
141                'application': application,
                    
173
                    
174        data = {'apikey': self.apikey}
                    
175
                    
205
                    
206        data = {'apikey': self.apikey}
                    
207
                    
258
                    
259        data = {'apikey': self.apikey}
                    
260
                    
                
lib.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 249 lines
                    
91    public static function get_allowed_config() {
                    
92        return array('apikey', 'sharedsecret');
                    
93    }
                    
102        $strrequired = get_string('required');
                    
103        $mform->addElement('text', 'apikey', get_string('apikey', 'portfolio_flickr'), array('size' => 30));
                    
104        $mform->addRule('apikey', $strrequired, 'required', null, 'client');
                    
133
                    
134        $this->flickr = new phpFlickr($this->get_config('apikey'), $this->get_config('sharedsecret'), $token);
                    
135
                    
137            $this->token = $token;
                    
138            $this->flickr = new phpFlickr($this->get_config('apikey'), $this->get_config('sharedsecret'), $token);
                    
139            return false;
                    
151
                    
152        $this->flickr = new phpFlickr($this->get_config('apikey'), $this->get_config('sharedsecret'));
                    
153
                    
                
thetvdbbackend.py https://github.com/aleximplode/Show-Tracker.git | Python | 296 lines
                    
119        '''
                    
120        zipdata = self._request(urljoin(choice(self.__mirrors[2]), '/api/%s/series/%s/all/en.zip' % (self.__apikey(), id)))
                    
121        
                    
269        
                    
270    def __apikey(self):
                    
271        '''
                    
273        '''
                    
274        return self._getsetting('apikey', str, 'C66331E1E6D28F85')
                    
275    
                    
276    def __loadmirrors(self):
                    
277        data = self._request('http://www.thetvdb.com/api/%s/mirrors.xml' % self.__apikey())
                    
278
                    
                
Account.php https://gitlab.com/blueprintmrk/dyn-php | PHP | 796 lines
                    
72     */
                    
73    protected $apiKey;
                    
74
                    
155                ->setCreated($json->created)
                    
156                ->setApiKey($json->apikey)
                    
157                ->setTimeZone($json->timezone)
                    
212            'trackunsubscribes' => $this->getTrackUnsubscribes() ? '1' : '0',
                    
213            'generatenewapikey' => '0', // TODO
                    
214        );
                    
495     */
                    
496    public function setApiKey($apiKey)
                    
497    {
                    
497    {
                    
498        $this->apiKey = $apiKey;
                    
499
                    
                
hadouken.py https://gitlab.com/132nd-etcher/CouchPotatoServer | Python | 427 lines
                    
33
                    
34        if not self.conf('apikey'):
                    
35            log.error('Config properties are not filled in correctly, API key is missing.')
                    
                
NugetPackage.cs https://nugetwizard.svn.codeplex.com/svn | C# | 277 lines
                    
86
                    
87        public static bool Push(string packagePath, string source, string apiKey, ref string output)
                    
88        {
                    
89            NugetRemote remote = new NugetRemote();
                    
90            return remote.Push(packagePath, source, apiKey, ref output);
                    
91        }
                    
92
                    
93        public static bool Publish(string id, string version, string source, string apiKey, ref string output)
                    
94        {
                    
95            NugetRemote remote = new NugetRemote();
                    
96            return remote.Publish(id, version, source, apiKey, ref output);
                    
97        }
                    
98
                    
99        public static bool Remove(string id, string version, string source, string apiKey, ref string output)
                    
100        {
                    
                
ParseServer.js https://gitlab.com/mlnkv/parse-server | JavaScript | 289 lines
                    
75// "dotNetKey": optional key from Parse dashboard
                    
76// "restAPIKey": optional key from Parse dashboard
                    
77// "javascriptKey": optional key from Parse dashboard
                    
97    dotNetKey,
                    
98    restAPIKey,
                    
99    fileKey = 'invalid-file-key',
                    
174      dotNetKey: dotNetKey,
                    
175      restAPIKey: restAPIKey,
                    
176      fileKey: fileKey,
                    
                
AnnotationsController.php https://gitlab.com/dusandevic/hypothesis | PHP | 416 lines
                    
27
                    
28    public function callAPI($apiKey, $groupID, $offset=0){      
                    
29
                    
31                'http' => array (
                    
32                    'header' => 'Authorization: Bearer '.$apiKey
                    
33                )
                    
46            \Log::info("TOTAL: ".$total.", OFFSET: ".$offset);
                    
47            $this->callAPI($apiKey, $groupID, $offset + 200); //recursive call
                    
48        }else{
                    
                
sns.py https://bitbucket.org/liutaihua/yyu.git | Python | 391 lines
                    
41    
                    
42    def __init__(self, apikey, apikey_secret, redirect_uri, 
                    
43            scope=None, state=None, display=None):
                    
44
                    
45        self.apikey = apikey
                    
46        self.apikey_secret = apikey_secret
                    
53        qs = {
                    
54            'client_id'     : self.apikey,
                    
55            'response_type' : 'code',
                    
92
                    
93    def __init__(self, apikey, apikey_secret, redirect_uri, 
                    
94            scope=None, state=None, display=None):
                    
94            scope=None, state=None, display=None):
                    
95        super(DoubanLogin, self).__init__(apikey, apikey_secret, redirect_uri, scope)
                    
96
                    
                
test_example_iauthfunctions.py https://gitlab.com/iislod/ckan | Python | 261 lines
                    
50        tests.call_action_api(app, 'group_create', name='test-group',
                    
51                              apikey=sysadmin['apikey'])
                    
52
                    
57        tests.call_action_api(app, 'group_create', name='test-group',
                    
58                              apikey=user['apikey'], status=403)
                    
59
                    
70        tests.call_action_api(app, 'group_create', name='test-group',
                    
71                              apikey=sysadmin['apikey'])
                    
72
                    
77        tests.call_action_api(app, 'group_create', name='test-group',
                    
78                              apikey=user['apikey'])
                    
79
                    
135        curators_group = tests.call_action_api(self.app, 'group_create',
                    
136                                               apikey=sysadmin['apikey'],
                    
137                                               name='curators',
                    
                
program.js https://gitlab.com/guy.spronck/node-telegram-bot | JavaScript | 490 lines
                    
33// Initialise geocder
                    
34var geocoder = require('node-geocoder')(config.geocode.provider, 'https', {apiKey: config.geocode.apiKey});
                    
35
                    
                
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            );
                    
                
api-request.php https://gitlab.com/VTTE/sitios-vtte | PHP | 443 lines
                    
271		//if ( $this->apikey ) {
                    
272		//	$headers['X-ExactMetrics-ApiKey'] = $this->apikey;
                    
273		//}
                    
                
authentication_methods.rb https://github.com/kidakaka/canvas-lms.git | Ruby | 260 lines
                    
91        @developer_key = DeveloperKey.find_by_api_key(params[:api_key]) if @pseudonym_session.try(:used_basic_auth?) && params[:api_key].present?
                    
92        @developer_key || request.get? || form_authenticity_token == form_authenticity_param || raise(ApplicationController::InvalidDeveloperAPIKey)
                    
93      end
                    
                
EtherShield_PachubeRGB.pde https://github.com/smulube/EtherShield.git | Processing | 397 lines
                    
88// Host: <HOSTNAME>
                    
89// X-PachubeApiKey: xxxxxxxx
                    
90// User-Agent: Arduino/1.0
                    
92// Replace xxxxxxxxxxxxx with your Pachube API key
                    
93#define HOSTNAME "www.pachube.com\r\nX-PachubeApiKey: xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"          // API key
                    
94#define WEBSERVER_VHOST "www.pachube.com"
                    
                
c00511c7-7be60a84.patch.sql https://gitlab.com/billyprice1/osTicket | SQL | 311 lines
                    
170ALTER TABLE `%TABLE_PREFIX%api_key`
                    
171    ADD notes TEXT NULL DEFAULT NULL AFTER apikey,
                    
172    ADD UNIQUE (apikey);
                    
                
NoticeConstructorSpec.groovy https://bitbucket.org/cavneb/airbrake-grails.git | Groovy | 459 lines
                    
24        def notice = new Notice(
                    
25                apiKey: 'abcd',
                    
26                env: 'production',
                    
38        then:
                    
39        notice.apiKey == 'abcd'
                    
40        notice.env == 'production'
                    
                
BoxRESTApiFactory.m https://bitbucket.org/plepic/titanium_modules.git | Objective C | 359 lines
                    
24static NSString * BOX_API_KEY = @"BOX API KEY NOT SET";
                    
25+ (void) changeBoxAPIKey:(NSString*)key {
                    
26    [BOX_API_KEY release];
                    
                
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
                    
                
comments.php https://github.com/davidturner/Wee_.git | PHP | 209 lines
                    
2if($site->akismet != ''){
                    
3  $WordPressAPIKey = $site->akismet;
                    
4  $MyBlogURL = $site->url;
                    
                
Config.java https://gitlab.com/vectorci/td-jdbc | Java | 402 lines
                    
34    public static final String TD_JDBC_PASSWORD = "password";
                    
35    public static final String TD_JDBC_APIKEY = "apikey";
                    
36    public static final String TD_JDBC_JOB_TYPE = "type";
                    
309        // TD API key
                    
310        String apiKey = null;
                    
311        // Check environment variable
                    
312        if(System.getenv().containsKey("TD_API_KEY")) {
                    
313            apiKey = System.getenv().get("TD_API_KEY");
                    
314        }
                    
315        if(apiKey == null) {
                    
316            apiKey = getJDBCProperty(props, TD_JDBC_APIKEY, TD_API_KEY);
                    
317        }
                    
322        else {
                    
323            apiConfig.setApiKey(apiKey);
                    
324        }
                    
                
main.js https://gitlab.com/zautre/dw-push | JavaScript | 463 lines
                    
2
                    
3var API_KEY = gcmAPIKey;
                    
4
                    
                
FlickrUploader.cs https://gitlab.com/billyprice1/ShareX | C# | 387 lines
                    
51        {
                    
52            return new FlickrUploader(APIKeys.FlickrKey, APIKeys.FlickrSecret, config.FlickrAuthInfo, config.FlickrSettings);
                    
53        }
                    
                
FlickrRestStore.js https://github.com/suhaspnehete/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									},
                    
                
ServerConnector.js https://gitlab.com/prashanth-sams/protractortesting | JavaScript | 210 lines
                    
48     *
                    
49     * @param apiKey {String} The api key to be used.
                    
50     */
                    
50     */
                    
51    ServerConnector.prototype.setApiKey = function (apiKey) {
                    
52        this._httpOptions.query.apiKey = apiKey;
                    
58     */
                    
59    ServerConnector.prototype.getApiKey = function () {
                    
60        return this._httpOptions.query.apiKey;
                    
                
GetChildInfoTest.php https://gitlab.com/i-have-a-green/digitemis-v3 | PHP | 141 lines
                    
135    /**
                    
136     * Test attribute "apiKeys"
                    
137     */
                    
137     */
                    
138    public function testPropertyApiKeys()
                    
139    {
                    
                
Akismet.php https://github.com/lenix/silverstripe-comments.git | PHP | 398 lines
                    
54	private $version = '0.2';
                    
55	private $wordPressAPIKey;
                    
56	private $blogURL;
                    
81	 */
                    
82	public function __construct($blogURL, $wordPressAPIKey)
                    
83		{
                    
84		$this->blogURL = $blogURL;
                    
85		$this->wordPressAPIKey = $wordPressAPIKey;
                    
86		
                    
105		// Check to see if the key is valid
                    
106		$response = $this->http_post('key=' . $this->wordPressAPIKey . '&blog=' . $this->blogURL, $this->akismetServer, '/' . $this->akismetVersion . '/verify-key');
                    
107
                    
167		{
                    
168		$response = $this->http_post($this->getQueryString(), $this->wordPressAPIKey . '.rest.akismet.com', '/' . $this->akismetVersion . '/comment-check');
                    
169		
                    
                
api.py https://github.com/mattoufoutu/pybitly.git | Python | 317 lines
                    
125            hasharg = self._multi_args('hash', urlHashs)
                    
126        url = "%s/expand?login=%s&apiKey=%s%s%s" % (
                    
127            self.base_url, self.login, self.key, urlarg, hasharg
                    
135        """
                    
136        url = "%s/validate?login=%s&apiKey=%s&x_login=%s&x_apiKey=%s" % (
                    
137            self.base_url, self.login, self.key, login, key
                    
159            hasharg = self._multi_args('hash', urlHashs)
                    
160        url = '%s/clicks?login=%s&apiKey=%s%s%s' % (
                    
161            self.base_url, self.login, self.key, urlarg, hasharg
                    
176        if shortUrl is not None:
                    
177            url = "%s/referrers?login=%s&apiKey=%s&shortUrl=%s" % (
                    
178                self.base_url, self.login, self.key, shortUrl
                    
196        if shortUrl is not None:
                    
197            url = "%s/countries?login=%s&apiKey=%s&shortUrl=%s" % (
                    
198                self.base_url, self.login, self.key, shortUrl
                    
                
UkrBashAppDelegate.m https://github.com/jamapag/UkrBash_iOS.git | Objective C | 318 lines
                    
20#import "GAIDictionaryBuilder.h"
                    
21#import "ApiKey.h"
                    
22#import "SharingController.h"
                    
                
base.php https://gitlab.com/crsr/google-api-php-client | PHP | 141 lines
                    
45
                    
46function missingApiKeyWarning()
                    
47{
                    
121
                    
122function setClientCredentialsFile($apiKey)
                    
123{
                    
123{
                    
124  $file = __DIR__ . '/../../tests/.apiKey';
                    
125  file_put_contents($file, $apiKey);
                    
128
                    
129function getApiKey()
                    
130{
                    
136
                    
137function setApiKey($apiKey)
                    
138{
                    
                
rc.go https://gitlab.com/shinvdu/syncthing | Go | 625 lines
                    
33
                    
34// APIKey is set via the STGUIAPIKEY variable when we launch the binary, to
                    
35// ensure that we have API access regardless of authentication settings.
                    
35// ensure that we have API access regardless of authentication settings.
                    
36const APIKey = "592A47BC-A7DF-4C2F-89E0-A80B3E5094EE"
                    
37
                    
101	}
                    
102	cmd.Env = append(os.Environ(), "STNORESTART=1", "STGUIAPIKEY="+APIKey)
                    
103
                    
171
                    
172	req.Header.Add("X-API-Key", APIKey)
                    
173
                    
196
                    
197	req.Header.Add("X-API-Key", APIKey)
                    
198	req.Header.Add("Content-Type", "application/json")
                    
                
com.metinkale.prayer.yml https://gitlab.com/onitake/fdroiddata | YAML | 313 lines
                    
303      - bash fdroidPrep.sh
                    
304      - sed -i -e '/io.fabric/d; /com.crashlytics/d; /com.google.android.gms/d; /GoogleApiKey/d'
                    
305        features/{base,compass}/build.gradle
                    
                
GroupsInterface.java https://gitlab.com/sugesk/flickr4java | Java | 326 lines
                    
44
                    
45    private final String apiKey;
                    
46
                    
51    public GroupsInterface(String apiKey, String sharedSecret, Transport transportAPI) {
                    
52        this.apiKey = apiKey;
                    
53        this.sharedSecret = sharedSecret;
                    
77
                    
78        Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret);
                    
79        if (response.isError()) {
                    
130
                    
131        Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret);
                    
132        if (response.isError()) {
                    
229
                    
230        Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret);
                    
231        if (response.isError()) {
                    
                
DesignMovieService.cs https://github.com/blackjid/CouchPotatoWp7.git | C# | 77 lines
                    
70            couch = new CouchApi();
                    
71            couch.ApiKey = "7c9fad341b764a5f8c4781c76f3cbc24";
                    
72            couch.Host = "nas.blackjid.info";
                    
                
Event.java https://github.com/bugsnag/bugsnag-android.git | Java | 415 lines
                    
115     */
                    
116    public void setApiKey(@NonNull String apiKey) {
                    
117        if (apiKey != null) {
                    
117        if (apiKey != null) {
                    
118            impl.setApiKey(apiKey);
                    
119        } else {
                    
119        } else {
                    
120            logNull("apiKey");
                    
121        }
                    
128    @NonNull
                    
129    public String getApiKey() {
                    
130        return impl.getApiKey();
                    
                
middleware_ip_whitelist_test.go https://gitlab.com/jjae2124/tyk | Go | 382 lines
                    
163	thisSpec := createDefinitionFromString(apiTestDef)
                    
164	redisStore := RedisStorageManager{KeyPrefix: "apikey-"}
                    
165	healthStore := &RedisStorageManager{KeyPrefix: "apihealth."}
                    
183	spec := MakeIPSampleAPI(ipMiddlewareTestDefinitionEnabledFail)
                    
184	redisStore := RedisStorageManager{KeyPrefix: "apikey-"}
                    
185	healthStore := &RedisStorageManager{KeyPrefix: "apihealth."}
                    
212	spec := MakeIPSampleAPI(ipMiddlewareTestDefinitionEnabledPass)
                    
213	redisStore := RedisStorageManager{KeyPrefix: "apikey-"}
                    
214	healthStore := &RedisStorageManager{KeyPrefix: "apihealth."}
                    
241	spec := MakeIPSampleAPI(ipMiddlewareTestDefinitionEnabledPass)
                    
242	redisStore := RedisStorageManager{KeyPrefix: "apikey-"}
                    
243	healthStore := &RedisStorageManager{KeyPrefix: "apihealth."}
                    
270	spec := MakeIPSampleAPI(ipMiddlewareTestDefinitionEnabledPass)
                    
271	redisStore := RedisStorageManager{KeyPrefix: "apikey-"}
                    
272	healthStore := &RedisStorageManager{KeyPrefix: "apihealth."}
                    
                
TelegramAPI.java https://gitlab.com/plotnikau/telebotapi | Java | 251 lines
                    
57	public TelegramAPI(BotProperties botProperties) {
                    
58		apiBaseUrl = "https://api.telegram.org/bot" + botProperties.getApiKey() + "/";
                    
59	}
                    
                
0001_initial.py https://gitlab.com/asmjahid/opps | Python | 62 lines
                    
13    def forwards(self, orm):
                    
14        # Adding model 'ApiKey'
                    
15        db.create_table(u'api_apikey', (
                    
20        ))
                    
21        db.send_create_signal(u'api', ['ApiKey'])
                    
22
                    
24    def backwards(self, orm):
                    
25        # Deleting model 'ApiKey'
                    
26        db.delete_table(u'api_apikey')
                    
29    models = {
                    
30        u'api.apikey': {
                    
31            'Meta': {'object_name': 'ApiKey'},
                    
                
event.php https://gitlab.com/matt-oakes/Online-Lastfm-Player | PHP | 294 lines
                    
52					'method' => 'event.attend',
                    
53					'api_key' => $this->auth->apiKey,
                    
54					'sk' => $this->auth->sessionKey
                    
89				'method' => 'event.getattendees',
                    
90				'api_key' => $this->auth->apiKey
                    
91			);
                    
130				'method' => 'event.getinfo',
                    
131				'api_key' => $this->auth->apiKey
                    
132			);
                    
186				'method' => 'event.getshouts',
                    
187				'api_key' => $this->auth->apiKey
                    
188			);
                    
226					'method' => 'event.share',
                    
227					'api_key' => $this->auth->apiKey,
                    
228					'sk' => $this->auth->sessionKey
                    
                
RecommendationsAI.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 449 lines
                    
50  public $projects_locations_catalogs_eventStores_placements;
                    
51  public $projects_locations_catalogs_eventStores_predictionApiKeyRegistrations;
                    
52  public $projects_locations_catalogs_eventStores_userEvents;
                    
260    );
                    
261    $this->projects_locations_catalogs_eventStores_predictionApiKeyRegistrations = new RecommendationsAI\Resource\ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrations(
                    
262        $this,
                    
263        $this->serviceName,
                    
264        'predictionApiKeyRegistrations',
                    
265        [
                    
267            'create' => [
                    
268              'path' => 'v1beta1/{+parent}/predictionApiKeyRegistrations',
                    
269              'httpMethod' => 'POST',
                    
287            ],'list' => [
                    
288              'path' => 'v1beta1/{+parent}/predictionApiKeyRegistrations',
                    
289              'httpMethod' => 'GET',
                    
                
api.legislators.rst https://github.com/runderwood/openstates.git | ReStructuredText | 370 lines
                    
75
                    
76:samp:`http://openstates.sunlightlabs.com/api/v1/legislators/?{SEARCH-PARAMS}&apikey={YOUR_API_KEY}`
                    
77
                    
80
                    
81http://openstates.sunlightlabs.com/api/v1/legislators/?state=ca&party=democratic&first_name=Bob&active=true&apikey=YOUR_API_KEY
                    
82
                    
115
                    
116:samp:`http://openstates.sunlightlabs.com/api/v1/legislators/{LEG_ID}/?apikey={YOUR_API_KEY}`
                    
117
                    
120
                    
121http://openstates.sunlightlabs.com/api/v1/legislators/MDL000210/?apikey=YOUR_API_KEY
                    
122
                    
204
                    
205:samp:`http://openstates.sunlightlabs.com/api/v1/legislators/geo/?lat={LATITUDE}&long={LONGITUDE}&apikey={YOUR_API_KEY}`
                    
206
                    
                
ContactsFacade.php https://gitlab.com/kubiq/eveblues | PHP | 153 lines
                    
6use EveBlues\Model\Alliance\AlliancesRepository;
                    
7use EveBlues\Model\ApiKey\ApiKey;
                    
8use EveBlues\Model\ApiKey\ApiKeysRepository;
                    
26	private $labelsRepository;
                    
27	/** @var ApiKeysRepository */
                    
28	private $apiKeysRepository;
                    
48	public function __construct(
                    
49		ApiKeysRepository $apiKeysRepository,
                    
50		AlliancesRepository	$alliancesRepository,
                    
63		$this->labelsRepository = $labelsRepository;
                    
64		$this->apiKeysRepository = $apiKeysRepository;
                    
65		$this->charactersRepository = $charactersRepository;
                    
75
                    
76	public function getContacts(User $owner, ApiKey $apiKey, int $characterId) :Character {
                    
77
                    
                
FacebookWebServices.java https://gitlab.com/manoj-makkuboy/magnetism | Java | 330 lines
                    
26
                    
27	private String apiKey;
                    
28	private String secret;
                    
32		try {
                    
33			apiKey = config.getPropertyNoDefault(HippoProperty.FACEBOOK_API_KEY).trim();
                    
34			if (apiKey.length() == 0)
                    
34			if (apiKey.length() == 0)
                    
35				apiKey = null;
                    
36			this.secret = config.getPropertyNoDefault(HippoProperty.FACEBOOK_SECRET).trim();
                    
39		} catch (PropertyNotFoundException e) {
                    
40			apiKey = null;
                    
41			secret = null;
                    
42		}
                    
43		if ((apiKey == null) || (secret == null))
                    
44			logger.warn("Facebook API key or secret are not set, can't make Facebook web services calls.");
                    
                
QueueingServiceExamples.fs https://gitlab.com/rekby-archive/onlyoffice-CommunityServer | F# | 121 lines
                    
12
                    
13let identity = new CloudIdentity (Username = "MyUser", APIKey = "API_KEY_HERE")
                    
14let region : string = null
                    
                
DataCenter.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 185 lines
                    
28// http://code.google.com/apis/maps/signup.XML
                    
29$egDataCenterGoogleMapsAPIKey =
                    
30	'ABQIAAAAo3BpqDgnwu31qtxQuWSXxhRfg0gREfvmgqiKvmq8TMsZGNFQPxRj0C9gpgXFOwUITevSg6mG9zBHCQ';
                    
                
service.py https://github.com/gperciva/git-cl.git | Python | 256 lines
                    
73
                    
74  def _SetAPIKey(self, api_key):
                    
75    if not isinstance(self.additional_headers, dict):
                    
78
                    
79  def __SetAPIKey(self, api_key):
                    
80    self._SetAPIKey(api_key)
                    
81
                    
82  def _GetAPIKey(self):
                    
83    if 'X-Google-Key' not in self.additional_headers:
                    
87
                    
88  def __GetAPIKey(self):
                    
89    return self._GetAPIKey()
                    
90
                    
91  api_key = property(__GetAPIKey, __SetAPIKey,
                    
92      doc="""Get or set the API key to be included in all requests.""")
                    
                
README.md https://gitlab.com/vectorci/td-android-sdk | Markdown | 381 lines
                    
56```
                    
57    TreasureData.initializeDefaultApiKey("your_default_api_key");
                    
58    	:
                    
75		:
                    
76	TreasureData.initializeDefaultApiKey("your_write_apikey");
                    
77	TreasureData.initializeEncryptionKey("hello world");
                    
                
authentication.py https://github.com/johncosta/django-jcosta-tastypie.git | Python | 166 lines
                    
5from django.test import TestCase
                    
6from tastypie.authentication import Authentication, BasicAuthentication, ApiKeyAuthentication, DigestAuthentication
                    
7from tastypie.http import HttpUnauthorized
                    
7from tastypie.http import HttpUnauthorized
                    
8from tastypie.models import ApiKey, create_api_key
                    
9
                    
76
                    
77class 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()
                    
                
page.5.php https://gitlab.com/Rushaway/sourcebanspp | PHP | 220 lines
                    
9define('DB_CHARSET', '{charset}');                    // The Database charset (Default: utf8)
                    
10define('STEAMAPIKEY', '{steamapikey}');				// Steam API Key for Shizz
                    
11define('SB_EMAIL', '{sbwpemail}');
                    
34$web_cfg = str_replace("{charset}", $_POST['charset'], $web_cfg);
                    
35$web_cfg = str_replace("{steamapikey}", $_POST['apikey'], $web_cfg);
                    
36$web_cfg = str_replace("{sbwpemail}", $_POST['sb-email'], $web_cfg);
                    
188<input type="hidden" name="prefix" value="<?php echo $_POST['prefix']?>">
                    
189<input type="hidden" name="apikey" value="<?php echo $_POST['apikey']?>">
                    
190<input type="hidden" name="sb-email" value="<?php echo $_POST['sb-email']?>">
                    
                
HSHappyFoxGear.m https://gitlab.com/brunofernandeslopes/helpstack | Objective C | 236 lines
                    
40
                    
41- (id)initWithInstanceUrl:(NSString*) instanceUrl apiKey:(NSString *)api_key authCode:(NSString *)auth_code priorityID: (NSString *)priority_ID categoryID: (NSString *) category_ID{
                    
42    if ( (self = [super init]) ) {
                    
                
HpIdentityProvider.cs https://gitlab.com/rekby-archive/onlyoffice-CommunityServer | C# | 199 lines
                    
146                    JObject credentialsObject;
                    
147                    if (!string.IsNullOrEmpty(identity.APIKey))
                    
148                    {
                    
150                            new JProperty("apiAccessKeyCredentials", new JObject(
                    
151                                new JProperty("accessKey", identity.APIKey),
                    
152                                new JProperty("secretKey", identity.Password))));
                    
184                };
                    
185            string key = string.Format("{0}:{1}/{2}/{3}/{4}", UrlBase, identityWithProject != null ? identityWithProject.ProjectId : null, identity.Username, identity.APIKey, identity.Password);
                    
186            var userAccess = TokenCache.Get(key, refreshCallback, forceCacheRefresh);
                    
                
SmugMugWebServices.java https://gitlab.com/manoj-makkuboy/magnetism | Java | 209 lines
                    
25	private int timeoutMilliseconds = 8000;
                    
26	private String apiKey = null;
                    
27
                    
27
                    
28	public SmugMugWebServices(int timeout, String apiKey) 
                    
29	{
                    
30		timeoutMilliseconds = timeout;
                    
31		this.apiKey = apiKey;
                    
32	}
                    
93		Hashtable<String, String> params = new Hashtable<String, String>();
                    
94		params.put("APIKey", apiKey);
                    
95		
                    
108		Hashtable<String, String> params = new Hashtable<String, String>();
                    
109		params.put("APIKey", apiKey);
                    
110		params.put("EmailAddress", emailAddress);
                    
                
you_track.rb https://gitlab.com/Rockyspade/github-services | Ruby | 155 lines
                    
56      else
                    
57        http.headers['X-YouTrack-ApiKey'] = api_key
                    
58      end
                    
                
templates.php https://github.com/petehobo/WP-Geo.git | PHP | 446 lines
                    
223	if ( $id > 0 && !is_feed() ) {
                    
224		if ( $wpgeo->show_maps() && $show_post_map != 'TOP' && $show_post_map != 'BOTTOM' && $wpgeo->checkGoogleAPIKey() ) {
                    
225			
                    
392
                    
393	if ( !$wpgeo->show_maps() || !$wpgeo->checkGoogleAPIKey() ) {
                    
394		return '';
                    
                
TDOperatorTest.java https://gitlab.com/github-cloud-corp/digdag | Java | 203 lines
                    
54                .set("database", "")
                    
55                .set("apikey", "foobar");
                    
56
                    
66                .set("database", " \t\n")
                    
67                .set("apikey", "foobar");
                    
68
                    
73    @Test
                    
74    public void verifyEmptyApiKeyParameterIsRejected()
                    
75            throws Exception
                    
78                .set("database", "foobar")
                    
79                .set("apikey", "");
                    
80
                    
85    @Test
                    
86    public void verifyWhitespaceApiKeyParameterIsRejected()
                    
87            throws Exception
                    
                
Method.cs https://gitlab.com/CORP-RESELLER/aws-sdk-net | C# | 201 lines
                    
34    {
                    
35        private bool? _apiKeyRequired;
                    
36        private string _authorizationType;
                    
44        /// <summary>
                    
45        /// Gets and sets the property ApiKeyRequired. 
                    
46        /// <para>
                    
46        /// <para>
                    
47        /// Specifies whether the method requires a valid <a>ApiKey</a>.
                    
48        /// </para>
                    
49        /// </summary>
                    
50        public bool ApiKeyRequired
                    
51        {
                    
51        {
                    
52            get { return this._apiKeyRequired.GetValueOrDefault(); }
                    
53            set { this._apiKeyRequired = value; }
                    
                
settings.py https://github.com/runderwood/openstates.git | Python | 97 lines
                    
60    'django.middleware.cache.FetchFromCacheMiddleware',
                    
61    'locksmith.auth.middleware.APIKeyMiddleware',
                    
62    'django.contrib.redirects.middleware.RedirectFallbackMiddleware',
                    
                
chromoting_jni_runtime.cc https://gitlab.com/jonnialva90/iridium-browser | C++ | 376 lines
                    
54
                    
55static ScopedJavaLocalRef<jstring> GetApiKey(
                    
56    JNIEnv* env,
                    
57    const JavaParamRef<jclass>& clazz) {
                    
58  return ConvertUTF8ToJavaString(env, google_apis::GetAPIKey().c_str());
                    
59}
                    
                
plugin-class.php http://facebook-photos.googlecode.com/svn/trunk/ | PHP | 290 lines
                    
77        
                    
78        $apikey  = get_option('tantan_facebook_apikey');
                    
79        $secret  = get_option('tantan_facebook_secret');
                    
                
GetChildInfoApiKeysV3.php https://gitlab.com/i-have-a-green/digitemis-v3 | PHP | 337 lines
                    
2/**
                    
3 * GetChildInfoApiKeysV3
                    
4 *
                    
35/**
                    
36 * GetChildInfoApiKeysV3 Class Doc Comment
                    
37 *
                    
42 */
                    
43class GetChildInfoApiKeysV3 implements ModelInterface, ArrayAccess
                    
44{
                    
51      */
                    
52    protected static $swaggerModelName = 'getChildInfo_apiKeys_v3';
                    
53
                    
                
GetChildInfoApiKeysV2.php https://gitlab.com/i-have-a-green/digitemis-v3 | PHP | 337 lines
                    
2/**
                    
3 * GetChildInfoApiKeysV2
                    
4 *
                    
35/**
                    
36 * GetChildInfoApiKeysV2 Class Doc Comment
                    
37 *
                    
42 */
                    
43class GetChildInfoApiKeysV2 implements ModelInterface, ArrayAccess
                    
44{
                    
51      */
                    
52    protected static $swaggerModelName = 'getChildInfo_apiKeys_v2';
                    
53
                    
                
GenericScopedInterceptor.java https://gitlab.com/varunkothamachu/seldon-server | Java | 183 lines
                    
77            exceptionResponse(request, response, e);
                    
78            String apiKey = request.getServletPath().replaceAll("/", "\\."); //Asumes no user/item ids in path!!!!
                    
79            ApiLogger.log(apiKey,start, request, null);
                    
90        final ConsumerBean consumerBean = (ConsumerBean) session.getAttribute("consumer");
                    
91        String apiKey = request.getServletPath().replaceAll("/", "\\."); //Asumes no user/item ids in path!!!!
                    
92        ApiLogger.log(apiKey,start, request, consumerBean);
                    
                
index.html https://gitlab.com/bourd0n/zakupki | HTML | 176 lines
                    
81                    });
                    
82                    addApiKeyAuthorization();
                    
83                });
                    
85                function addApiKeyAuthorization() {
                    
86                    var apiKeyAuth = new SwaggerClient.ApiKeyAuthorization("X-XSRF-TOKEN", getCSRF(), "header");
                    
87                    window.swaggerUi.api.clientAuthorizations.add("key", apiKeyAuth);
                    
                
accueil.html https://gitlab.com/Philemon/ProjetDAR | HTML | 321 lines
                    
27
                    
28<script src="http://localhost:8080/ProjetDAR/get-csrf-token.js?apiKey=fec84c00-e89b-4e9f-b0f6-bc3922ba6387"></script>
                    
29<title>Accueil</title>
                    
                
index.html https://gitlab.com/ndkhoiits/hello-jhipster | HTML | 112 lines
                    
68
                    
69            function addApiKeyAuthorization(){
                    
70            
                    
70            
                    
71                var apiKeyAuth = new SwaggerClient.ApiKeyAuthorization("X-CSRF-TOKEN", getCSRF(), "header");
                    
72                window.swaggerUi.api.clientAuthorizations.add("key", apiKeyAuth);
                    
90
                    
91            addApiKeyAuthorization();
                    
92
                    
                
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: 
                    
                
Handler.cfc http://mangoblog-extensions.googlecode.com/svn/trunk/ | ColdFusion CFScript | 141 lines
                    
10			<cfset super.init(argumentCollection=arguments) />
                    
11			<cfset initSettings(apiKey='YOUR_AKISMET_API_KEY', mode='moderate') />
                    
12			
                    
29		<cfif arguments.fromVersion EQ "1.1">
                    
30			<cfset setSettings(apiKey=getPreferencesManager().get(path,"apiKey","YOUR_AKISMET_API_KEY"),
                    
31								mode=getPreferencesManager().get(path,"mode","moderate")) />
                    
33			<cfset getPreferencesManager().removeNode(path) />
                    
34			<cfset initSettings(apiKey='YOUR_AKISMET_API_KEY', mode='moderate') />
                    
35		</cfif>
                    
108					
                    
109					<cfset setSettings(apiKey=data.externaldata.apiKey, mode=data.externaldata.mode)>
                    
110					<cfset persistSettings() />
                    
135		<cfset variables.cfakismet.setBlogURL(manager.getBlog().getUrl()) />
                    
136		<cfset variables.cfakismet.setKey(getSetting('apiKey')) />
                    
137		<cfset variables.cfakismet.setApplicationName("Mango " & manager.getVersion()) />
                    
                
Crashlytics.h https://gitlab.com/yangle1111/knoware | C Header | 263 lines
                    
24
                    
25@property (nonatomic, readonly, copy) NSString *APIKey;
                    
26@property (nonatomic, readonly, copy) NSString *version;
                    
33 *
                    
34 * Make certain that the delegate is setup before starting Crashlytics with startWithAPIKey:... or
                    
35 * via +[Fabric with:...]. Failure to do will result in missing any delegate callbacks that occur
                    
41/**
                    
42 *  The recommended way to install Crashlytics into your application is to place a call to +startWithAPIKey: 
                    
43 *  in your -application:didFinishLaunchingWithOptions: or -applicationDidFinishLaunching:
                    
53+ (Crashlytics *)startWithAPIKey:(NSString *)apiKey;
                    
54+ (Crashlytics *)startWithAPIKey:(NSString *)apiKey afterDelay:(NSTimeInterval)delay CLS_DEPRECATED("Crashlytics no longer needs or uses the delay parameter.  Please use +startWithAPIKey: instead.");
                    
55
                    
65+ (Crashlytics *)startWithAPIKey:(NSString *)apiKey delegate:(nullable id<CrashlyticsDelegate>)delegate;
                    
66+ (Crashlytics *)startWithAPIKey:(NSString *)apiKey delegate:(nullable id<CrashlyticsDelegate>)delegate afterDelay:(NSTimeInterval)delay CLS_DEPRECATED("Crashlytics no longer needs or uses the delay parameter.  Please use +startWithAPIKey:delegate: instead.");
                    
67
                    
                
FKFlickrStatsGetPhotosetStats.m https://gitlab.com/vicrius/flickrVisualizer | Objective C | 108 lines
                    
85			return @"User not logged in / Insufficient permissions";
                    
86		case FKFlickrStatsGetPhotosetStatsError_InvalidAPIKey:
                    
87			return @"Invalid API Key";
                    
                
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. */
                    
                
FKFlickrPhotosCommentsAddComment.m https://gitlab.com/vicrius/flickrVisualizer | Objective C | 106 lines
                    
83			return @"User not logged in / Insufficient permissions";
                    
84		case FKFlickrPhotosCommentsAddCommentError_InvalidAPIKey:
                    
85			return @"Invalid API Key";
                    
                
FKFlickrStatsGetCollectionStats.h https://gitlab.com/vicrius/flickrVisualizer | C Header | 55 lines
                    
22	FKFlickrStatsGetCollectionStatsError_UserNotLoggedInOrInsufficientPermissions = 99,		 /* The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions. */
                    
23	FKFlickrStatsGetCollectionStatsError_InvalidAPIKey = 100,		 /* The API key passed was not valid or has expired. */
                    
24	FKFlickrStatsGetCollectionStatsError_ServiceCurrentlyUnavailable = 105,		 /* The requested service is temporarily unavailable. */
                    
                
FKFlickrPhotosCommentsEditComment.m https://gitlab.com/vicrius/flickrVisualizer | Objective C | 106 lines
                    
83			return @"User not logged in / Insufficient permissions";
                    
84		case FKFlickrPhotosCommentsEditCommentError_InvalidAPIKey:
                    
85			return @"Invalid API Key";
                    
                
FlickrRestStore.js https://github.com/atasay/scorll.git | JavaScript | 483 lines
                    
18			if(args.apikey){
                    
19				this._apikey = args.apikey;
                    
20			}
                    
42
                    
43	// _apikey: String
                    
44	//		The users API key to be used when accessing Flickr REST services.
                    
44	//		The users API key to be used when accessing Flickr REST services.
                    
45	_apikey: null,
                    
46
                    
98			method: "flickr.photos.search",
                    
99			api_key: this._apikey,
                    
100			extras: "owner_name,date_upload,date_taken"
                    
114
                    
115		if(query.apikey){
                    
116			isRest = true;
                    
                
ui.qml https://github.com/bzar/panorama.git | QML | 416 lines
                    
78  Setting {
                    
79    id: apiKeySetting
                    
80    section: "PNDManager"
                    
80    section: "PNDManager"
                    
81    key: "apiKey"
                    
82    defaultValue: ""
                    
126    username: usernameSetting.value
                    
127    key: apiKeySetting.value
                    
128  }
                    
                
Cron.php https://gitlab.com/grayhamster/open-social-media-monitoring | PHP | 217 lines
                    
87                    $parameters = array(
                    
88                        'apikey'        => $settings['alchemy_api_key'],
                    
89                        'outputMode'    => 'json',
                    
                
app_settings.html https://gitlab.com/lileeyao/airnotifier.git | HTML | 269 lines
                    
173    <div class="control-group">
                    
174        <label class="control-label" for="form-element-gcmapikey">{{ _('API key') }}</label>
                    
175        <div class="controls">
                    
175        <div class="controls">
                    
176            <input type="text" class="input-xlarge" id="form-element-gcmapikey" name="gcmapikey" value="{{app.get('gcmapikey', '')}}">
                    
177        </div>
                    
                
Form1.cs https://gitlab.com/developer9/nuget-publisher | C# | 276 lines
                    
159
                    
160                if (string.IsNullOrEmpty(ApiKeyTextBox.Text))
                    
161                {
                    
165
                    
166                if (await RunNuget(@"push ""{0}.nupkg"" -Source " + ServerUrlTextBox.Text + " -ApiKey " + ApiKeyTextBox.Text + " -DisableBuffering" + "{1}", _fileNames, true))
                    
167                {
                    
171
                    
172                StatusLabel.Text = @"Unable to publish all packages. Check your Internet Connection, Nuget URL and ApiKey.";
                    
173            },
                    
                
ApiRequestor.php https://gitlab.com/eatsmpl/site | PHP | 233 lines
                    
6{
                    
7    private $_apiKey;
                    
8
                    
12
                    
13    public function __construct($apiKey = null, $apiBase = null)
                    
14    {
                    
14    {
                    
15        $this->_apiKey = $apiKey;
                    
16        if (!$apiBase) {
                    
115    {
                    
116        $myApiKey = $this->_apiKey;
                    
117        if (!$myApiKey) {
                    
117        if (!$myApiKey) {
                    
118            $myApiKey = Stripe::$apiKey;
                    
119        }
                    
                
misp.py https://github.com/cuckoobox/cuckoo.git | Python | 210 lines
                    
140        url = self.options.get("url")
                    
141        apikey = self.options.get("apikey")
                    
142        mode = shlex.split(self.options.get("mode") or "")
                    
157
                    
158        if not url or not apikey:
                    
159            raise CuckooProcessingError(
                    
167
                    
168        self.misp = pymisp.PyMISP(url, apikey, False, "json")
                    
169
                    
                
fise.js https://github.com/pivaldi/Aloha-Plugin-Annotations.git | JavaScript | 322 lines
                    
60	
                    
61	if ( this.settings.ApiKey ) {
                    
62		// set the service name
                    
62		// set the service name
                    
63		this.repositoryName = 'fise/' + this.settings.ApiKey;
                    
64	} else {
                    
                
JwtAuthenticationResult.html https://gitlab.com/DamZou/myMeteoApp | HTML | 537 lines
                    
42				<ul class="dropdown-menu ">
                    
43					<li><a href="Account.html">Account</a></li><li><a href="AccountStoreMapping.html">AccountStoreMapping</a></li><li><a href="ApiKey.html">ApiKey</a></li><li><a href="Application.html">Application</a></li><li><a href="ApplicationAccountStoreMapping.html">ApplicationAccountStoreMapping</a></li><li><a href="AuthenticationResult.html">AuthenticationResult</a></li><li><a href="Cache.html">Cache</a></li><li><a href="CacheEntry.html">CacheEntry</a></li><li><a href="CacheManager.html">CacheManager</a></li><li><a href="CacheStats.html">CacheStats</a></li><li><a href="Client.html">Client</a></li><li><a href="CollectionResource.html">CollectionResource</a></li><li><a href="DataStore.html">DataStore</a></li><li><a href="Directory.html">Directory</a></li><li><a href="DirectoryChildResource.html">DirectoryChildResource</a></li><li><a href="InstanceResource.html">InstanceResource</a></li><li><a href="JwtAuthenticationResult.html">JwtAuthenticationResult</a></li><li><a href="MemcachedStore.html">MemcachedStore</a></li><li><a href="OAuthClientCredentialsAuthenticationResult.html">OAuthClientCredentialsAuthenticationResult</a></li><li><a href="OAuthPasswordGrantAuthenticationResult.html">OAuthPasswordGrantAuthenticationResult</a></li><li><a href="OAuthPasswordGrantRequestAuthenticator.html">OAuthPasswordGrantRequestAuthenticator</a></li><li><a href="OAuthPolicy.html">OAuthPolicy</a></li><li><a href="ObjectCallProxy.html">ObjectCallProxy</a></li><li><a href="OrganizationAccountStoreMapping.html">OrganizationAccountStoreMapping</a></li><li><a href="PasswordResetToken.html">PasswordResetToken</a></li><li><a href="RedisStore.html">RedisStore</a></li><li><a href="RequestExecutor.html">RequestExecutor</a></li><li><a href="SamlPolicy.html">SamlPolicy</a></li><li><a href="SamlServiceProvider.html">SamlServiceProvider</a></li><li><a href="Tenant.html">Tenant</a></li>
                    
44				</ul>
                    
                
TransportCreateApiKeyAction.java https://github.com/elasticsearch/elasticsearch.git | Java | 72 lines
                    
17import org.elasticsearch.xpack.core.security.SecurityContext;
                    
18import org.elasticsearch.xpack.core.security.action.apikey.CreateApiKeyAction;
                    
19import org.elasticsearch.xpack.core.security.action.apikey.CreateApiKeyRequest;
                    
19import org.elasticsearch.xpack.core.security.action.apikey.CreateApiKeyRequest;
                    
20import org.elasticsearch.xpack.core.security.action.apikey.CreateApiKeyResponse;
                    
21import org.elasticsearch.xpack.core.security.authc.Authentication;
                    
29 */
                    
30public final class TransportCreateApiKeyAction extends HandledTransportAction<CreateApiKeyRequest, CreateApiKeyResponse> {
                    
31
                    
38        ActionFilters actionFilters,
                    
39        ApiKeyService apiKeyService,
                    
40        SecurityContext context,
                    
49    @Override
                    
50    protected void doExecute(Task task, CreateApiKeyRequest request, ActionListener<CreateApiKeyResponse> listener) {
                    
51        final Authentication authentication = securityContext.getAuthentication();
                    
                
PostmarkProtocol.cfc https://github.com/mmckellip/coldbox-platform.git | ColdFusion CFScript | 243 lines
                    
20			// Property Checks
                    
21			if(NOT propertyExists("APIKey")){
                    
22				// No API key was found, so throw an exception.
                    
22				// No API key was found, so throw an exception.
                    
23				throw(message="ApiKey is Required",type="PostmarkProtocol.PropertyNotFound");
                    
24			}			
                    
126					<cfhttpparam type="header" name="Content-type" value="application/json" />
                    
127					<cfhttpparam type="header" name="X-Postmark-Server-Token" value="#getProperty("ApiKey")#" />
                    
128					<cfhttpparam type="body" encoded="no" value="#local.jsonPacketWithoutPrefix#" />
                    
                
index.html https://gitlab.com/betimbryma/SEPM-Ticketline | HTML | 87 lines
                    
55
                    
56    $('#input_apiKey').change(function() {
                    
57      var key = $('#input_apiKey')[0].value;
                    
60        log("added key " + key);
                    
61        window.authorizations.add("key", new ApiKeyAuthorization("api_key", key, "query"));
                    
62      }
                    
                
mobile-base.js https://github.com/aabt/openlayers.git | JavaScript | 172 lines
                    
2// http://bingmapsportal.com/ and use that instead.
                    
3var apiKey = "AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf";
                    
4
                    
64            new OpenLayers.Layer.Bing({
                    
65                key: apiKey,
                    
66                type: "Road",
                    
75            new OpenLayers.Layer.Bing({
                    
76                key: apiKey,
                    
77                type: "Aerial",
                    
81            new OpenLayers.Layer.Bing({
                    
82                key: apiKey,
                    
83                type: "AerialWithLabels",
                    
                
SendAllMessagesServlet.java https://bitbucket.org/goffity/google-cloud-message.git | Java | 152 lines
                    
60    String key = (String) config.getServletContext()
                    
61        .getAttribute(ApiKeyInitializer.ATTRIBUTE_ACCESS_KEY);
                    
62    return new Sender(key);
                    
                
MusixMatchPlugin.cpp https://github.com/lfranchi/tomahawk.git | C++ | 158 lines
                    
34    : InfoPlugin()
                    
35    , m_apiKey( "61be4ea5aea7dd942d52b2f1311dd9fe" )
                    
36{
                    
66
                    
67    TomahawkUtils::urlAddQueryItem( url, "apikey", m_apiKey );
                    
68    TomahawkUtils::urlAddQueryItem( url, "q_artist", artist );
                    
124    QString track_id = domNodeList.at(0).toElement().text();
                    
125    QString requestString( "http://api.musixmatch.com/ws/1.1/track.lyrics.get?track_id=%1&format=xml&apikey=%2" );
                    
126    QUrl url( requestString );
                    
127
                    
128    TomahawkUtils::urlAddQueryItem( url, "apikey", m_apiKey );
                    
129    TomahawkUtils::urlAddQueryItem( url, "track_id", track_id );
                    
                
user.py https://gitlab.com/iislod/ckan | Python | 292 lines
                    
26        Column('email', types.UnicodeText),
                    
27        Column('apikey', types.UnicodeText, default=_types.make_uuid),
                    
28        Column('created', types.DateTime, default=datetime.datetime.now),
                    
                
APIKey_Id.cs https://github.com/Vanaheimr/Hermod.git | C# | 387 lines
                    
38        /// <param name="APIKey">An API key identifications.</param>
                    
39        public static Boolean IsNullOrEmpty(this APIKey_Id? APIKey)
                    
40            => !APIKey.HasValue || APIKey.Value.IsNullOrEmpty;
                    
45        /// <param name="APIKey">An API key identifications.</param>
                    
46        public static Boolean IsNotNullOrEmpty(this APIKey_Id? APIKey)
                    
47            => APIKey.HasValue && APIKey.Value.IsNotNullOrEmpty;
                    
227        public static Boolean operator != (APIKey_Id APIKeyIdId1,
                    
228                                           APIKey_Id APIKeyIdId2)
                    
229
                    
339
                    
340            => Object is APIKey_Id apiKeyId &&
                    
341                   Equals(apiKeyId);
                    
351        /// <returns>True if both match; False otherwise.</returns>
                    
352        public Boolean Equals(APIKey_Id APIKeyId)
                    
353
                    
                
views.py https://github.com/john2x/pley.git | Python | 334 lines
                    
50    ###############
                    
51    google_apikey   = settings.GOOGLE_MAPS_KEY
                    
52    string_location = business_item.address1 +  ', ' +business_item.address2 +  ', ' + business_item.city +  ', ' + business_item.province + ', ' + business_item.country + ', ' + business_item.zipcode
                    
73            "urlencoded_string_location":urlencoded_string_location,
                    
74            "google_apikey":google_apikey,
                    
75            "business_form": business_form,
                    
                
TiJiraModule.m https://bitbucket.org/plepic/titanium_modules.git | Objective C | 225 lines
                    
102                        project:[args valueForKey:@"projectKey"]
                    
103                         apiKey:[args valueForKey:@"apiKey"]
                    
104                         photos:[TiUtils boolValue:[args valueForKey:@"allowPhotos"] def:YES]
                    
                
bitly.php https://github.com/wrlee/gallery3-contrib.git | PHP | 217 lines
                    
71        'login' => $login,
                    
72        'apiKey' => $api_key,
                    
73        'x_login' => $login,
                    
73        'x_login' => $login,
                    
74        'x_apiKey' => $api_key
                    
75        );
                    
81          message::error(t("Your bit.ly login is incorrect"));
                    
82        } else if ("INVALID_APIKEY" == $json_decoded->status_txt) {
                    
83          message::error(t("Your bit.ly API Key is incorrect."));
                    
179      "login" => module::get_var("bitly", "login"),
                    
180      'apiKey' => module::get_var("bitly", "api_key"),
                    
181      'longUrl' => $long_url,
                    
                
OctopushTransport.php https://github.com/FabienD/symfony.git | PHP | 97 lines
                    
31    private string $userLogin;
                    
32    private string $apiKey;
                    
33    private string $from;
                    
35
                    
36    public function __construct(string $userLogin, string $apiKey, string $from, string $type, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
                    
37    {
                    
38        $this->userLogin = $userLogin;
                    
39        $this->apiKey = $apiKey;
                    
40        $this->from = $from;
                    
69                'user_login' => $this->userLogin,
                    
70                'api_key' => $this->apiKey,
                    
71                'sms_text' => $message->getSubject(),
                    
                
exoscale.go https://gitlab.com/wilane/machine | Go | 464 lines
                    
21	URL              string
                    
22	APIKey           string `json:"ApiKey"`
                    
23	APISecretKey     string `json:"ApiSecretKey"`
                    
137	d.URL = flags.String("exoscale-url")
                    
138	d.APIKey = flags.String("exoscale-api-key")
                    
139	d.APISecretKey = flags.String("exoscale-api-secret-key")
                    
155	}
                    
156	if d.APIKey == "" || d.APISecretKey == "" {
                    
157		return fmt.Errorf("Please specify an API key (--exoscale-api-key) and an API secret key (--exoscale-api-secret-key).")
                    
186func (d *Driver) GetState() (state.State, error) {
                    
187	client := egoscale.NewClient(d.URL, d.APIKey, d.APISecretKey)
                    
188	vm, err := client.GetVirtualMachine(d.ID)
                    
262	log.Infof("Querying exoscale for the requested parameters...")
                    
263	client := egoscale.NewClient(d.URL, d.APIKey, d.APISecretKey)
                    
264	topology, err := client.GetTopology()
                    
                
test_tag_vocab.py https://bitbucket.org/philippkueng/ckan-liip.git | Python | 225 lines
                    
87        params = json.dumps({'name': TEST_VOCAB_NAME})
                    
88        extra_environ = {'Authorization' : str(cls.sysadmin_user.apikey)}
                    
89        response = cls.app.post('/api/action/vocabulary_create', params=params,
                    
94        # add tags to the vocab
                    
95        extra_environ = {'Authorization' : str(cls.sysadmin_user.apikey)}
                    
96        params = json.dumps({'name': cls.tag1_name, 'vocabulary_id': vocab_id})
                    
124        response = self.app.post('/api/action/package_update', params=params,
                    
125                                 extra_environ={'Authorization': str(self.sysadmin_user.apikey)})
                    
126        assert json.loads(response.body)['success']
                    
134        response = self.app.post('/api/action/package_update', params=params,
                    
135                                 extra_environ={'Authorization': str(self.sysadmin_user.apikey)})
                    
136        assert json.loads(response.body)['success']
                    
                
ja.php https://github.com/mrclay/Elgg-leaf.git | PHP | 81 lines
                    
21	'APIException:NotGetOrPost' => "リクエストの手段は GET もしくは、 POST でないといけません。",
                    
22	'APIException:MissingAPIKey' => "API key がありません",
                    
23	'APIException:BadAPIKey' => "API key が間違っています",
                    
41	'SecurityException:DupePacket' => "パケット・シグネイチャはすでに見ました。",
                    
42	'SecurityException:InvalidAPIKey' => "API Key が不正あるいは欠如しています。",
                    
43	'NotImplementedException:CallMethodNotImplemented' => "呼び出しメソッド '%s' は現在サポートされていません。",
                    
                
dtrust.php https://gitlab.com/nahoor/public | PHP | 127 lines
                    
16/* Replace the $apiKey with the API Key from your Block.io Wallet. A different API key exists for Dogecoin, Dogecoin Testnet, Litecoin, Litecoin Testnet, etc. */
                    
17$apiKey = 'DogecoinTestnetAPIKey';
                    
18$pin = 'SecretPin';
                    
20
                    
21$block_io = new BlockIo($apiKey, $pin, $version);
                    
22
                    
                
lib.php https://github.com/tcubansk/moodle.git | PHP | 256 lines
                    
76    public static function get_allowed_config() {
                    
77        return array('apikey');
                    
78    }
                    
111
                    
112        $mform->addElement('text', 'apikey', get_string('apikey', 'portfolio_boxnet'));
                    
113        $mform->addRule('apikey', get_string('required'), 'required', null, 'client');
                    
156        }
                    
157        $this->boxclient = new boxclient($this->get_config('apikey'), '');
                    
158        $ticket_return = $this->boxclient->getTicket();
                    
234    public function instance_sanity_check() {
                    
235        if (!$this->get_config('apikey')) {
                    
236            return 'err_noapikey';
                    
                
Connection.cs https://github.com/tjom/MIRPCADB.git | C# | 191 lines
                    
48			p["t"] = timestamp;
                    
49			p["api_key"] = authenticatedSession.APIKey;
                    
50			p["sk"] = authenticatedSession.SessionKey;
                    
                
TestOfFlickrAPIAccessor.php https://github.com/SimonCoopey/ThinkUp.git | PHP | 81 lines
                    
45
                    
46    public function testGetFlickrPhotoSourceNoFlickrAPIKey() {
                    
47        $logger = Logger::getInstance();
                    
                
requests.go https://gitlab.com/CORP-RESELLER/kubernetes | Go | 281 lines
                    
75	// Test first for unrecognized arguments.
                    
76	if options.APIKey != "" {
                    
77		return createErr(ErrAPIKeyProvided)
                    
                
ConfigApiController.php git://github.com/vanillaforums/Garden.git | PHP | 217 lines
                    
131
                    
132        // ApiKey => ConfigKey
                    
133        $propertyMapping = [];
                    
                
RSAPKCS1KeyExchangeDeformatterTest.cs https://github.com/pruiz/mono.git | C# | 212 lines
                    
53	[Test]
                    
54	public void CapiKeyExchangeMin () 
                    
55	{
                    
66	[Test]
                    
67	public void CapiKeyExchange128 () 
                    
68	{
                    
79	[Test]
                    
80	public void CapiKeyExchange160 () 
                    
81	{
                    
92	[Test]
                    
93	public void CapiKeyExchangeMax () 
                    
94	{
                    
                
FBSession.h https://github.com/leecraven/facebook-iphone-sdk.git | C Header | 203 lines
                    
35  NSMutableArray* _delegates;
                    
36  NSString* _apiKey;
                    
37  NSString* _apiSecret;
                    
66 */
                    
67@property(nonatomic,readonly) NSString* apiKey;
                    
68
                    
                
 

Source

Language