This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var carouselUploadRetries = 0; | |
var videoUploadRetries = 0; | |
var imageUploadRetries = 0; | |
var publishRetries = 0; | |
const maxUploadRetries = 2; | |
const maxPublishRetries = 2; | |
var caption = bundle.inputData.caption; | |
if(caption==='undefined' || caption===null || caption===''){ | |
caption = ''; | |
}else{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const options = { | |
url: 'https://api.churchpool.com/v3/parish/'+bundle.inputData.parish_id+'/post?sort=createdDate,ASC', | |
// url: 'https://churchpool-api.dhimahi.com/v3/parish/'+bundle.inputData.parish_id+'/post?sort=createdDate,ASC', // New Posts - Test | |
method: 'GET', | |
headers: { | |
'Accept': 'application/json', | |
} | |
} | |
return z.request(options) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const options = { | |
url: 'https://graph.facebook.com/v15.0/me', | |
method: 'POST', | |
headers: { | |
'Authorization': `Bearer ${bundle.authData.access_token}` | |
}, | |
} | |
return z.request(options) | |
.then((response) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const options = { | |
url: 'https://graph.facebook.com/oauth/access_token', | |
method: 'POST', | |
params: { | |
'redirect_uri': bundle.inputData.redirect_uri, | |
'code': bundle.inputData.code, | |
'client_id': process.env.CLIENT_ID, | |
'client_secret': process.env.CLIENT_SECRET | |
}, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'dart:convert'; | |
import 'dart:io'; | |
import 'dart:typed_data'; | |
import 'package:bitcoin_flutter/bitcoin_flutter.dart'; | |
import 'package:bitcoin_flutter/bitcoin_flutter.dart' as bitf; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:convert'; | |
import 'dart:typed_data'; | |
import 'package:http/http.dart' as http; | |
import 'package:amazon_cognito_identity_dart/sig_v4.dart'; | |
class AWSClient { | |
String accessKeyId = 'AKPAAH6EDUOYSGTSJVFB'; // replace with your own access key | |
String secretKeyId = 'imLP837nxYarh/DWP+sLskPZqTCFHRS5PVzMRVcP'; // replace with your own secret key | |
String region = 'ap-south-1'; // replace with your account's region name | |
String bucketname = "your_bucket_name"; // replace with your S3's bucket name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'package:flutter/material.dart'; | |
import 'package:sentry/sentry.dart'; | |
final sentry = SentryClient(dsn: "https://[email protected]/1951746"); // change dsn with your own | |
void main() async { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:workmanager/workmanager.dart'; | |
const myTask = "syncWithTheBackEnd"; | |
void callbackDispatcher() { | |
// this method will be called every hour | |
Workmanager.executeTask((task, inputdata) async { | |
switch (task) { | |
case myTask: | |
print("this method was called from native!"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:io'; | |
import 'dart:typed_data'; | |
import 'package:flutter/material.dart'; | |
import 'package:image_picker/image_picker.dart'; | |
import 'package:image/image.dart' as ui; | |
void main() => runApp(MyApp()); |
NewerOlder