File tree Expand file tree Collapse file tree 9 files changed +19
-19
lines changed Expand file tree Collapse file tree 9 files changed +19
-19
lines changed Original file line number Diff line number Diff line change 88 $ Balance = $ MessageBird ->balance ->read ();
99 var_dump ($ Balance );
1010
11- } catch (MessageBird \Exceptions \AuthenticateException $ e ) {
11+ } catch (\ MessageBird \Exceptions \AuthenticateException $ e ) {
1212 // That means that your accessKey is unknown
1313 echo 'wrong login ' ;
1414
15- } catch (Exception $ e ) {
15+ } catch (\ Exception $ e ) {
1616 var_dump ($ e ->getMessage ());
1717
1818}
Original file line number Diff line number Diff line change 1212 // That means that your accessKey is unknown
1313 echo 'wrong login ' ;
1414
15- } catch (Exception $ e ) {
15+ } catch (\ Exception $ e ) {
1616 var_dump ($ e ->getMessage ());
1717}
Original file line number Diff line number Diff line change 1313 $ MessageResult = $ MessageBird ->messages ->create ($ Message );
1414 var_dump ($ MessageResult );
1515
16- } catch (MessageBird \Exceptions \AuthenticateException $ e ) {
16+ } catch (\ MessageBird \Exceptions \AuthenticateException $ e ) {
1717 // That means that your accessKey is unknown
1818 echo 'wrong login ' ;
1919
20- } catch (MessageBird \Exceptions \BalanceException $ e ) {
20+ } catch (\ MessageBird \Exceptions \BalanceException $ e ) {
2121 // That means that you are out of credits, so do something about it.
2222 echo 'no balance ' ;
2323
24- } catch (Exception $ e ) {
24+ } catch (\ Exception $ e ) {
2525 echo $ e ->getMessage ();
2626}
Original file line number Diff line number Diff line change 88 $ deleted = $ MessageBird ->messages ->delete ('deb1fe303539efdf1730124b69920283 ' ); // Set a message id here
99 var_dump ('Deleted: ' . $ deleted );
1010
11- } catch (MessageBird \Exceptions \AuthenticateException $ e ) {
11+ } catch (\ MessageBird \Exceptions \AuthenticateException $ e ) {
1212 // That means that your accessKey is unknown
1313 echo 'wrong login ' ;
1414
15- } catch (Exception $ e ) {
15+ } catch (\ Exception $ e ) {
1616 var_dump ($ e ->getMessage ());
1717
1818}
Original file line number Diff line number Diff line change 88 $ MessageList = $ MessageBird ->messages ->getList (array ('offset ' => 100 , 'count ' => 30 ));
99 var_dump ($ MessageList );
1010
11- } catch (MessageBird \Exceptions \AuthenticateException $ e ) {
11+ } catch (\ MessageBird \Exceptions \AuthenticateException $ e ) {
1212 // That means that your accessKey is unknown
1313 echo 'wrong login ' ;
1414
15- } catch (Exception $ e ) {
15+ } catch (\ Exception $ e ) {
1616 var_dump ($ e ->getMessage ());
1717}
Original file line number Diff line number Diff line change 88 $ MessageResult = $ MessageBird ->messages ->read ('ad86c8c0153a194a59a17e2b71578856 ' ); // Set a message id here
99 var_dump ($ MessageResult );
1010
11- } catch (MessageBird \Exceptions \AuthenticateException $ e ) {
11+ } catch (\ MessageBird \Exceptions \AuthenticateException $ e ) {
1212 // That means that your accessKey is unknown
1313 echo 'wrong login ' ;
1414
15- } catch (Exception $ e ) {
15+ } catch (\ Exception $ e ) {
1616 var_dump ($ e ->getMessage ());
1717}
Original file line number Diff line number Diff line change 1515 $ VoiceMessageResult = $ MessageBird ->voicemessages ->create ($ VoiceMessage );
1616 var_dump ($ VoiceMessageResult );
1717
18- } catch (MessageBird \Exceptions \AuthenticateException $ e ) {
18+ } catch (\ MessageBird \Exceptions \AuthenticateException $ e ) {
1919 // That means that your accessKey is unknown
2020 echo 'wrong login ' ;
2121
22- } catch (MessageBird \Exceptions \BalanceException $ e ) {
22+ } catch (\ MessageBird \Exceptions \BalanceException $ e ) {
2323 // That means that you are out of credits, so do something about it.
2424 echo 'no balance ' ;
2525
26- } catch (Exception $ e ) {
26+ } catch (\ Exception $ e ) {
2727 echo $ e ->getMessage ();
2828}
Original file line number Diff line number Diff line change 88 $ VoiceMessageList = $ MessageBird ->voicemessages ->getList (array ('offset ' => 100 , 'count ' => 30 ));
99 var_dump ($ VoiceMessageList );
1010
11- } catch (MessageBird \Exceptions \AuthenticateException $ e ) {
11+ } catch (\ MessageBird \Exceptions \AuthenticateException $ e ) {
1212 // That means that your accessKey is unknown
1313 echo 'wrong login ' ;
1414
15- } catch (Exception $ e ) {
15+ } catch (\ Exception $ e ) {
1616 var_dump ($ e ->getMessage ());
1717}
Original file line number Diff line number Diff line change 1010 $ VoiceMessageResult = $ MessageBird ->voicemessages ->read ('ca0a8220453bc36ddeb3115a37400870 ' ); // Set a message id here
1111 var_dump ($ VoiceMessageResult );
1212
13- } catch (MessageBird \Exceptions \AuthenticateException $ e ) {
13+ } catch (\ MessageBird \Exceptions \AuthenticateException $ e ) {
1414 // That means that your accessKey is unknown
1515 echo 'wrong login ' ;
1616
17- } catch (Exception $ e ) {
17+ } catch (\ Exception $ e ) {
1818 var_dump ($ e ->getMessage ());
1919}
You can’t perform that action at this time.
0 commit comments