GET http://localhost:3000/promotions HTTP/1.1 content-type: application/json
### GET http://localhost:3000/dishes HTTP/1.1
### GET http://localhost:3000/leaders HTTP/1.1
###
package com.rogergcc.workplaycontacts.ui; | |
import android.content.Intent; | |
import android.content.IntentSender; | |
import android.graphics.BitmapFactory; | |
import android.location.Location; | |
import android.os.Bundle; | |
import android.view.Gravity; | |
import android.view.View; | |
import android.view.ViewGroup; |
package com.rogergcc.workplaycontacts.helper; | |
import android.annotation.SuppressLint; | |
import android.app.AlertDialog; | |
import android.app.Service; | |
import android.content.Context; | |
import android.content.DialogInterface; | |
import android.content.Intent; | |
import android.location.Location; | |
import android.location.LocationListener; |
package com.example.s3k_user1.appzonas; | |
import static android.Manifest.permission.READ_PHONE_NUMBERS; | |
import static android.Manifest.permission.READ_PHONE_STATE; | |
import static android.Manifest.permission.READ_SMS; | |
import android.Manifest; | |
import android.app.Dialog; | |
import android.content.BroadcastReceiver; | |
import android.content.Context; |
class TelegramBot { | |
constructor(token) { | |
this.url = "https://api.telegram.org/bot" + token | |
//this.url = "https://api.telegram.org/bot" + token + "/" | |
} | |
getProp(key){ | |
return PropertiesService.getScriptProperties().getProperty(key) | |
} | |
setProp(key, value) { |
geofenceList.add(new Geofence.Builder() | |
// Set the request ID of the geofence. This is a string to identify this | |
// geofence. | |
.setRequestId(locationModel.getLat() + locationModel.getLon()) | |
.setCircularRegion( | |
Double.parseDouble(locationModel.getLat()), | |
Double.parseDouble(locationModel.getLon()), | |
(float) Double.parseDouble(String.valueOf(documentSnapshot.getData().get("radius"))) | |
) | |
.setTransitionTypes(Geofence.GEOFENCE_TRANSITION_ENTER) |
GET http://localhost:3000/promotions HTTP/1.1 content-type: application/json
### GET http://localhost:3000/dishes HTTP/1.1
### GET http://localhost:3000/leaders HTTP/1.1
###
<div id="button1"> | |
<button class="button" id="moviesfromapi" onclick="fetchApi()">Display</button> | |
</div> | |
<div hidden id="spinner"></div> | |
<div id="movieResult"></div> |
import android.content.Context; | |
import android.content.SharedPreferences; | |
import com.google.gson.Gson; | |
import com.rogergcc.workplaycontacts.common.CommonAppUtils; | |
import java.lang.reflect.Type; | |
/** | |
* Singleton Class for accessing SharedPreferences, |
const sheet = SpreadsheetApp.getActive().getSheetByName('Sheet1') | |
function doGet(e){ | |
const action = e.parameter.action; | |
//URL_SCRIPT/exec?action=getItems | |
if(action == 'getItems'){ | |
return getItems(e); | |
} | |
} |