curl --location 'https://graph.facebook.com/v18.0/<FORM_ID>/leads?limit=500&access_token=<LONG_LIVED_ACESS_TOKEN>'
- Replace
<FORM_ID>
with form id, e.g. 1260551454918979 - Replace
<LONG_LIVED_ACESS_TOKEN>
with your access token
{ | |
"1":{ | |
"id":"1", | |
"name":"In high school", | |
"type":"education_statuses", | |
"key":"Demographics > Education > Education level > In high school" | |
}, | |
"2":{ | |
"id":"2", | |
"name":"In college", |
{ | |
"task_oriented": 1432, | |
"informational": 1254, | |
"social": 1006, | |
"personal_advice_and_self_improvement": 816, | |
"philosophy_and_morality": 479, | |
"business_and_finance": 424, | |
"language_and_communication": 295, | |
"news_and_current_events": 235, | |
"technical": 63, |
Full Source Code: https://github.com/varunon9/DynamicWallpaper/tree/always_running_service
onDestroy
lifecycle of MyService, send a broadcast intent to MyReceiveronDestroy
of Service gets calledonDestroy
method of Service is not always guaranteed to be called and hence it might not get started againimport React from 'react'; | |
import { View, Text, StyleSheet, TouchableOpacity, Image } from 'react-native'; | |
import PropTypes from 'prop-types'; | |
const weekDaysNames = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; | |
class CalendarDayComponent extends React.PureComponent { | |
constructor(props) { | |
super(props); | |
this.onDayPress = this.onDayPress.bind(this); |
import React from 'react'; | |
import { View, Text, StyleSheet, TouchableOpacity } from 'react-native'; | |
import PropTypes from 'prop-types'; | |
const weekDaysNames = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; | |
class CalendarDayComponent extends React.Component { | |
constructor(props) { | |
super(props); | |
this.onDayPress = this.onDayPress.bind(this); |
const env = process.env.NODE_ENV || 'development'; | |
const config = require('../config/config.json')[env]; | |
const validationService = require('./validationService'); | |
const models = require('../models'); | |
const bcrypt = require('bcrypt'); | |
module.exports = { |
const jwt = require('jsonwebtoken'); // used to create, sign, and verify tokens | |
const env = process.env.NODE_ENV || 'development'; | |
const config = require('../config/config.json')[env]; | |
module.exports = { | |
verifyToken: function(req, res, next) { | |
// get token from cookies |
var globals = {}; // application wide global variable | |
globals.constants = { | |
} | |
globals.showToastMessage = function(heading, message, icon) { | |
$.toast({ | |
heading: heading, | |
text: message, | |
showHideTransition: 'slide', |
/** | |
* Created by: Varun kumar | |
* Date: 23 May, 2018 | |
*/ | |
const { makeExecutableSchema } = require('graphql-tools'); | |
const utilityService = require('../services/utilityService'); | |
const userService = require('../services/userService'); |